Skip to contentSkip to conversation

pata_marvell: fix cable detection

PATCH In review Arnaud Patard 2 participants 2 messages Nov 17, 2006 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pata_marvell: fix cable detection

A "break;" is missing in the cable detection switch() statement, leading to a wrong detection of the cable type.

---

drivers/ata/pata_marvell.c +1 -0
Index: libata-dev/drivers/ata/pata_marvell.c
===================================================================
@@ -62,6 +62,7 @@ static int marvell_pre_reset(struct ata_
 			ap->cbl = ATA_CBL_PATA80;
 		else
 			ap->cbl = ATA_CBL_PATA40;
+		break;
 
 	case 1: /* Legacy SATA port */
 		ap->cbl = ATA_CBL_SATA;