From: Nicholas Reilly <nreilly@magma.ca>
To: linux-kernel@vger.kernel.org
Subject: Fix for NForce2 secondary IDE getting wrong IRQ
Date: Fri, 03 Sep 2004 21:58:17 -0400 [thread overview]
Message-ID: <41392139.6010700@magma.ca> (raw)
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) \
reply other threads:[~2004-09-04 1:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=41392139.6010700@magma.ca \
--to=nreilly@magma.ca \
--cc=linux-kernel@vger.kernel.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