From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaud Patard Subject: [PATCH] pata_marvell: fix cable detection Date: Fri, 17 Nov 2006 19:04:06 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from ezoffice.mandriva.com ([84.14.106.134]:47373 "EHLO office.mandriva.com") by vger.kernel.org with ESMTP id S932975AbWKQSCC (ORCPT ); Fri, 17 Nov 2006 13:02:02 -0500 Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: linux-ide@vger.kernel.org Cc: alan@redhat.com --=-=-= A "break;" is missing in the cable detection switch() statement, leading to a wrong detection of the cable type. Signed-off-by: Arnaud Patard --- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=pata_marvell_fix_cbl_detect.patch 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; --=-=-=--