From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Subject: Re: pata_via in 2.6.19-rc6: UDMA/66 hdd downgraded to UDMA/33 Date: Wed, 29 Nov 2006 15:39:21 +0000 Message-ID: <20061129153921.1c27e19d@localhost.localdomain> References: <20061125160342.4e9ddef0@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:43404 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S967433AbWK2Pcf (ORCPT ); Wed, 29 Nov 2006 10:32:35 -0500 In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Krzysztof Oledzki Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org Does this fix it --- drivers/ata/pata_via.c~ 2006-11-29 15:16:10.961387472 +0000 +++ drivers/ata/pata_via.c 2006-11-29 15:17:08.784597008 +0000 @@ -60,7 +60,7 @@ #include #define DRV_NAME "pata_via" -#define DRV_VERSION "0.2.0" +#define DRV_VERSION "0.2.1" /* * The following comes directly from Vojtech Pavlik's ide/pci/via82cxxx @@ -159,10 +159,13 @@ return -ENOENT; } - if ((config->flags & VIA_UDMA) >= VIA_UDMA_66) + if ((config->flags & VIA_UDMA) >= VIA_UDMA_100) ap->cbl = via_cable_detect(ap); - else + /* The UDMA66 series has no cable detect so do drive side detect */ + else if ((config->flags & VIA_UDMA) < VIA_UDMA_66) ap->cbl = ATA_CBL_PATA40; + + return ata_std_prereset(ap); }