]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Sparc request_irq fix for RTC from DaveM.
authorChris Wright <chrisw@osdl.org>
Tue, 6 Sep 2005 23:24:50 +0000 (16:24 -0700)
committerChris Wright <chrisw@osdl.org>
Tue, 6 Sep 2005 23:24:50 +0000 (16:24 -0700)
queue/series
queue/sparc-request_irq-in-RTC-fix.patch [new file with mode: 0644]

index 902b496780fc94c9c79436eddfc555e1fee56d85..d45ba7356656a8ace80ddca219bc2301fe258f7d 100644 (file)
@@ -5,3 +5,4 @@ fix-pci-rom-mapping.patch
 pci_assign_unassigned_resources-update.patch
 fix-socket-filter-regression.patch
 ipsec-oops-fix.patch
+sparc-request_irq-in-RTC-fix.patch
diff --git a/queue/sparc-request_irq-in-RTC-fix.patch b/queue/sparc-request_irq-in-RTC-fix.patch
new file mode 100644 (file)
index 0000000..4003a20
--- /dev/null
@@ -0,0 +1,31 @@
+From stable-bounces@linux.kernel.org  Tue Sep  6 15:03:44 2005
+Date: Tue, 06 Sep 2005 15:03:39 -0700 (PDT)
+To: stable@kernel.org
+From: "David S. Miller" <davem@davemloft.net>
+Subject: [RTC]: Use SA_SHIRQ in sparc specific code.
+
+Based upon a report from Jason Wever.
+
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Chris Wright <chrisw@osdl.org>
+---
+ drivers/char/rtc.c |    5 ++---
+ 1 files changed, 2 insertions(+), 3 deletions(-)
+
+Index: linux-2.6.13.y/drivers/char/rtc.c
+===================================================================
+--- linux-2.6.13.y.orig/drivers/char/rtc.c
++++ linux-2.6.13.y/drivers/char/rtc.c
+@@ -938,10 +938,9 @@ found:
+       /*
+        * XXX Interrupt pin #7 in Espresso is shared between RTC and
+-       * PCI Slot 2 INTA# (and some INTx# in Slot 1). SA_INTERRUPT here
+-       * is asking for trouble with add-on boards. Change to SA_SHIRQ.
++       * PCI Slot 2 INTA# (and some INTx# in Slot 1).
+        */
+-      if (request_irq(rtc_irq, rtc_interrupt, SA_INTERRUPT, "rtc", (void *)&rtc_port)) {
++      if (request_irq(rtc_irq, rtc_interrupt, SA_SHIRQ, "rtc", (void *)&rtc_port)) {
+               /*
+                * Standard way for sparc to print irq's is to use
+                * __irq_itoa(). I think for EBus it's ok to use %d.