pata_marvell: fix cable detection
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.
Signed-off-by Arnaud Patard <[email protected]>
---
drivers/ata/pata_marvell.c +1 -0
@@ -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 ;
Quoted 5 lines · On Fri, 17 Nov 2006 19:04:06 +0100 Arnaud Patard <[email protected]> wrote:
A "break;" is missing in the cable detection
switch()statement, leading to a wrong detection of the cable type.Signed-off-by Arnaud Patard <[email protected]>
Acked-by Alan Cox <[email protected]>