Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Andrew Randrianasulu <randrik_a@yahoo.com>
To: linux-mips@linux-mips.org
Subject: [PATCH] IP32 power button fix for 2.6.30
Date: Thu, 14 May 2009 11:29:27 -0700 (PDT)	[thread overview]
Message-ID: <273990.30979.qm@web65307.mail.ac2.yahoo.com> (raw)



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-reset.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 = debounce;
        debounce_timer.expires = jiffies + 50;

----

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


      

             reply	other threads:[~2009-05-14 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 18:29 Andrew Randrianasulu [this message]
2009-05-15  9:13 ` [PATCH] IP32 power button fix for 2.6.30 Ralf Baechle
2009-05-15  9:20   ` Dmitri Vorobiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=273990.30979.qm@web65307.mail.ac2.yahoo.com \
    --to=randrik_a@yahoo.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox