Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Thu, 14 May 2009
 11:30:08 -0700
Received: from psmtp.com ([64.18.0.136]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Thu, 14 May 2009 11:30:08 -0700
Received: from source ([213.58.128.207]) by exprod5mx292.postini.com
 ([64.18.4.11]) with SMTP;	Thu, 14 May 2009 13:30:08 CDT
Received: from localhost.localdomain ([127.0.0.1]:47099 "EHLO
	ftp.linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by ftp.linux-mips.org	with
 ESMTP id S20025901AbZENS3z (ORCPT	<rfc822;andy.sharp@onstor.com>); Thu, 14
 May 2009 19:29:55 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 14 May 2009 19:29:39
 +0100 (BST)
Received: from web65307.mail.ac2.yahoo.com ([68.180.158.233]:21256 "HELO
	web65307.mail.ac2.yahoo.com" rhost-flags-OK-OK-OK-OK)	by ftp.linux-mips.org
 with SMTP id S20025917AbZENS3d (ORCPT	<rfc822;linux-mips@linux-mips.org>);
 Thu, 14 May 2009 19:29:33 +0100
Received: (qmail 31056 invoked by uid 60001); 14 May 2009 18:29:27 -0000
Received: from [91.196.252.17] by web65307.mail.ac2.yahoo.com via HTTP; Thu,
 14 May 2009 11:29:27 PDT
From: Andrew Randrianasulu <randrik_a@yahoo.com>
To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Thu, 14 May 2009 11:29:27 -0700
Subject: [PATCH] IP32 power button fix for 2.6.30
Thread-Topic: [PATCH] IP32 power button fix for 2.6.30
Thread-Index: AcnUwgLH7XcV3EeuRleqGZNGey2K1g==
Message-ID: <273990.30979.qm@web65307.mail.ac2.yahoo.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 14 May 2009 18:30:08.0856 (UTC)
 FILETIME=[0290D580:01C9D4C2]
x-ems-stamp: IFz8Mr0yY4OAdlduGpDveQ==
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
errors-to: linux-mips-bounce@linux-mips.org
domainkey-signature: a=rsa-sha1; q=dns; c=nofws;  s=s1024; d=yahoo.com;
  h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
  b=l+csaBSUkcUejy1eePqfA4RjWpw304kv2WEjFRORUsp0txYc2XoifcV6rAToMXtKOCJ+uoPuUwZeNrxEKG6/wAGgcJPlbngm6UKr12BwG4eLmQ0+SfA8dlevUdnlG/afkRQfVRV97gdmrRNSWEQvqiaATKP9fDCFHYwAYEop1WA=;
x-ymail-osg:
 X3gkQYQVM1nCEhImPoAYivN4cab5lcs1tqsyUeW2MFcL6MkHxu6fVh889E6sEV1A4KMY9jc26NaRkSDBuSJaGH4wynoWl0wQSc7APsq4wq108.iaWVt.WHCqo98WKjc8DWJRiggRnM_S5uZJuEW5i.nWNs419VCQogNrm9ESGosN9XMuaWqYOExmM0VktzNm8i5RSWcTkV0ecnFoBIb4R4TXYvz9trp_rS79sdAU9734LNg_lxyIysDZRhQjcJIW__Ke_uLBRFTlGzB2tappCA--
dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
 t=1242325767; bh=srhgTM3XJtyE3xpU+7sHUI4MinQ2RIGipxCpP4jOPP8=;
 h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
 b=Pt5FHKZ24FHF5dR2ymVCBYdgjChjkb6IIyxuaVKGtVWiOtjF8lrx/GvjiINuOLlUIYllTNI1EbjkEfLEL72+bMIl2ANJLyThbBUrCr8Spu8+HDuVvwS/nxm/5o838lx5iE5Q9D40dXKArAGePrQIlG4bzcqeQXNRCHZ+6/a0b2g=
x-pstn-neptune: 0/0/0.00/0
x-pstn-levels: (S:39.13008/99.90000 CV: 6.7865 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-list: linux-mips
x-archive-position: 22719
x-ecartis-version: Ecartis v1.0.0
x-original-sender: randrik_a@yahoo.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0



I think i run into same sort of problem, as described here:

http://lkml.org/lkml/2009/4/16/24
http://lkml.org/lkml/2009/4/14/94

(in my case it was hang after pressing O2's power button)

this patch fixes it:

----

diff --git a/arch/mips/sgi-ip32/ip32-reset.c b/arch/mips/sgi-ip32/ip32-rese=
t.c
index b6cab08..667da93 100644
--- a/arch/mips/sgi-ip32/ip32-reset.c
+++ b/arch/mips/sgi-ip32/ip32-reset.c
@@ -145,7 +145,7 @@ static irqreturn_t ip32_rtc_int(int irq, void *dev_id)
                        "%s: RTC IRQ without RTC_IRQF\n", __func__);
        }
        /* Wait until interrupt goes away */
-       disable_irq(MACEISA_RTC_IRQ);
+       disable_irq_nosync(MACEISA_RTC_IRQ);
        init_timer(&debounce_timer);
        debounce_timer.function =3D debounce;
        debounce_timer.expires =3D jiffies + 50;

----

tested with 2.6.30-rc5 mainline (linux-mips.org tree was also affected)


     =20

