pata_pdc202xx_old: Correct cable detect logic
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 3 Jul 2007 14:15:13 +0000 (15:15 +0100)
committerJeff Garzik <jeff@garzik.org>
Tue, 3 Jul 2007 14:11:12 +0000 (10:11 -0400)
We got it backwards and now the other detects are fixed it shows up

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_pdc202xx_old.c

index edbaf9d653b8a3a57e9b8b2de92301e735656d55..d277246b7337ace170887c2607dc7ed14d73cd75 100644 (file)
@@ -31,8 +31,8 @@ static int pdc2026x_cable_detect(struct ata_port *ap)
 
        pci_read_config_word(pdev, 0x50, &cis);
        if (cis & (1 << (10 + ap->port_no)))
-               return ATA_CBL_PATA80;
-       return ATA_CBL_PATA40;
+               return ATA_CBL_PATA40;
+       return ATA_CBL_PATA80;
 }
 
 /**