[PATCH] pata_marvell: fix cable detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Arnaud Patard <apatard@xxxxxxxxxxxx>
---
Index: libata-dev/drivers/ata/pata_marvell.c
===================================================================
--- libata-dev.orig/drivers/ata/pata_marvell.c
+++ 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;

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux