public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Fix for NForce2 secondary IDE getting wrong IRQ
@ 2004-09-04  1:58 Nicholas Reilly
  0 siblings, 0 replies; only message in thread
From: Nicholas Reilly @ 2004-09-04  1:58 UTC (permalink / raw)
  To: linux-kernel

I am not on the list so please cc me on replies.

I have a Shuttle SN41G2 and the secondary IDE channel alternates between 
IRQ 15 (correct) and IRQ 7 (causing failures accessing the DVD+-RW which 
is master, no slave and also messing with the parallel port if it is 
enabled) on each boot. This is running ACPI and APIC on 2.6.5, 2.6.7 and 
2.6.8. dmesg, dmidecode and /proc/acpi/dsdt are all identical (apart 
from dmesg printing of IRQ and errors it causes) regardless of whether 
it decides to go on 7 or 15. It is now running the latest BIOS, earlier 
BIOS did the same.

Comparing the amd74xx.c with piix.c suggests the following diff which 
works for me. MAINTAINERS doesn't list anyone for this driver and the 
file lists Vojtech Pavlik with no email address.

Regards,
Nick.

diff -u drivers/ide/pci/amd74xx.c ~/ide/amd74xx.c
--- drivers/ide/pci/amd74xx.c   2004-08-28 02:11:57.000000000 -0400
+++ /home/nreilly/ide/amd74xx.c 2004-09-03 21:21:30.000000000 -0400
@@ -443,6 +443,10 @@
                  hwif->autodma = 1;
          hwif->drives[0].autodma = hwif->autodma;
          hwif->drives[1].autodma = hwif->autodma;
+#ifndef CONFIG_IA64
+        if (!hwif->irq)
+                hwif->irq = hwif->channel ? 15 : 14;
+#endif /* CONFIG_IA64 */
  }

  #define DECLARE_AMD_DEV(name_str)                                      \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-04  1:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-04  1:58 Fix for NForce2 secondary IDE getting wrong IRQ Nicholas Reilly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox