Skip to content
Snippets Groups Projects
Commit a0ac38f1 authored by Alan Cox's avatar Alan Cox Committed by Jeff Garzik
Browse files

pata_pdc202xx_old: Correct cable detect logic


We got it backwards and now the other detects are fixed it shows up

Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent d6f4d5ea
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment