Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753621AbZKSRiq (ORCPT ); Thu, 19 Nov 2009 12:38:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753350AbZKSRiq (ORCPT ); Thu, 19 Nov 2009 12:38:46 -0500 Received: from ey-out-2122.google.com ([74.125.78.26]:6290 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752922AbZKSRip (ORCPT ); Thu, 19 Nov 2009 12:38:45 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:message-id:content-type:content-transfer-encoding; b=kaZs6XEnmfBSs9da/P5OPGx4q8y2ZS38HtTNqlCYK/Cz6BmTWXbX0ejgZKJ7ynbbD+ vi0sQ+S/DD7CPugAAYneIFEJqSxei3bqiKHKw2YLXobsGX57BfOFeqQvRSFAGKw4IA2c 6Rj4hk6IcyKTa51+xnDzOFfUam4lgtqyIeznE= From: Bartlomiej Zolnierkiewicz To: Alan Cox Subject: Re: [PATCH 4/5] pata: Update experimental tags Date: Thu, 19 Nov 2009 18:38:11 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31.5-96.fc12.x86_64; KDE/4.3.2; x86_64; ; ) Cc: Alan Cox , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, Jeff Garzik References: <20091117144450.15430.83450.stgit@localhost.localdomain> <200911191645.29885.bzolnier@gmail.com> <20091119162738.7e8e5665@lxorguk.ukuu.org.uk> In-Reply-To: <20091119162738.7e8e5665@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Message-Id: <200911191838.11791.bzolnier@gmail.com> Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1460 Lines: 44 On Thursday 19 November 2009 17:27:38 Alan Cox wrote: > > > > already have a buggy cable detection (since ->pre_reset ignores the mandatory > > > > > > Wrong. > > > > You cannot know it unless you know how chip operates internally. That's it. > > Read the code. How the chip operates is irrelevant. lol, there is a genuine cable detection bug in pata_hpt3x2n on closer look... Jeff, please apply the patch below. From: Bartlomiej Zolnierkiewicz Subject: [PATCH] pata_hpt3x2n: fix cable detection The detection was reversed between primary and secondary ports. Fix it to match hpt366 and the vendor driver. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/ata/pata_hpt3x2n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/drivers/ata/pata_hpt3x2n.c =================================================================== --- a/drivers/ata/pata_hpt3x2n.c +++ b/drivers/ata/pata_hpt3x2n.c @@ -133,7 +133,7 @@ static int hpt3x2n_cable_detect(struct a /* Restore state */ pci_write_config_byte(pdev, 0x5B, scr2); - if (ata66 & (1 << ap->port_no)) + if (ata66 & (2 >> ap->port_no)) return ATA_CBL_PATA40; else return ATA_CBL_PATA80; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/