Skip to content

Commit

Permalink
pata_pdc202xx_old: Correct cable detect logic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Jul 3, 2007
1 parent d6f4d5e commit a0ac38f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ata/pata_pdc202xx_old.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit a0ac38f

Please sign in to comment.