Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8b966dddc29899008fb178a533263afa8d1ad849
Commit:     8b966dddc29899008fb178a533263afa8d1ad849
Parent:     8af12cdb7c4aa9ed278ed71a8b5b130f2d8c8920
Author:     Mikael Pettersson <[EMAIL PROTECTED]>
AuthorDate: Sat Mar 3 20:57:44 2007 +0100
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Tue Mar 6 04:04:30 2007 -0500

    pata_legacy: fix io/irq mismatch
    
    pata_legacy fails to detect the disk on my old ISA/VLB 486:
    it starts to probe io=0x1f0 ctr=0x3f6 irq=15, complains
    loudly about IDENTIFYs timing out, and finally fails.
    (Sorry I couldn't capture the kernel's boot messages.)
    
    It turns out that the driver's mapping from io to irq in
    legacy_irq[] is wrong: index 0 for io=0x1f0 has irq=15 but
    should have irq=14, and index 1 for io=0x170 has irq=14 but
    should have irq=15. This is confirmed by a comparison with
    include/asm-i386/ide.h:ide_default_irq().
    
    This patch swaps the first two elements in legacy_irq[],
    which makes pata_legacy work on my 486.
    
    Signed-off-by: Mikael Pettersson <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/ata/pata_legacy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c
index fc5b73d..86fbcd6 100644
--- a/drivers/ata/pata_legacy.c
+++ b/drivers/ata/pata_legacy.c
@@ -69,7 +69,7 @@
 #define NR_HOST 6
 
 static int legacy_port[NR_HOST] = { 0x1f0, 0x170, 0x1e8, 0x168, 0x1e0, 0x160 };
-static int legacy_irq[NR_HOST] = { 15, 14, 11, 10, 8, 12 };
+static int legacy_irq[NR_HOST] = { 14, 15, 11, 10, 8, 12 };
 
 struct legacy_data {
        unsigned long timing;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to