aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/pata_marvell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_marvell.c b/drivers/ata/pata_marvell.c
index a5953c38926..25f7a79a8e2 100644
--- a/drivers/ata/pata_marvell.c
+++ b/drivers/ata/pata_marvell.c
@@ -57,11 +57,11 @@ static int marvell_pre_reset(struct ata_port *ap)
57 switch(ap->port_no) 57 switch(ap->port_no)
58 { 58 {
59 case 0: 59 case 0:
60 /* Might be backward, docs unclear */
61 if (inb(ap->ioaddr.bmdma_addr + 1) & 1) 60 if (inb(ap->ioaddr.bmdma_addr + 1) & 1)
62 ap->cbl = ATA_CBL_PATA80;
63 else
64 ap->cbl = ATA_CBL_PATA40; 61 ap->cbl = ATA_CBL_PATA40;
62 else
63 ap->cbl = ATA_CBL_PATA80;
64 break;
65 65
66 case 1: /* Legacy SATA port */ 66 case 1: /* Legacy SATA port */
67 ap->cbl = ATA_CBL_SATA; 67 ap->cbl = ATA_CBL_SATA;