summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorAlan Cox2007-07-03 16:15:13 +0200
committerJeff Garzik2007-07-03 16:11:12 +0200
commita0ac38f16045f90dbbcd265b638cd7254c53aa65 (patch)
tree0666d3866da38369a337183ec56134a75aabe74b /drivers/ata
parentata_generic: Check the right register for the DMA enabled flags (diff)
downloadkernel-qcow2-linux-a0ac38f16045f90dbbcd265b638cd7254c53aa65.tar.gz
kernel-qcow2-linux-a0ac38f16045f90dbbcd265b638cd7254c53aa65.tar.xz
kernel-qcow2-linux-a0ac38f16045f90dbbcd265b638cd7254c53aa65.zip
pata_pdc202xx_old: Correct cable detect logic
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_pdc202xx_old.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c
index edbaf9d653b8..d277246b7337 100644
--- a/drivers/ata/pata_pdc202xx_old.c
+++ b/drivers/ata/pata_pdc202xx_old.c
@@ -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;
}
/**