From patchwork Thu Mar 25 08:57:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JosephChan@via.com.tw X-Patchwork-Id: 48504 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1CD99B7C7E for ; Thu, 25 Mar 2010 19:57:49 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365Ab0CYI5r (ORCPT ); Thu, 25 Mar 2010 04:57:47 -0400 Received: from exchtp08.via.com.tw ([61.66.243.7]:46307 "EHLO exchtp08.via.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296Ab0CYI5q (ORCPT ); Thu, 25 Mar 2010 04:57:46 -0400 Received: from exchtp04.taipei.via.com.tw ([192.168.254.210]) by exchtp08.via.com.tw with Microsoft SMTPSVC(6.0.3790.3959); Thu, 25 Mar 2010 16:57:44 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: [Patch 1/1] pata_via: HDD of VT6410/6415/6330 cannot be detected issue Date: Thu, 25 Mar 2010 16:57:41 +0800 Message-ID: <9E058EE846170743AF7338FE064CB5AB38B400@exchtp04.taipei.via.com.tw> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Patch 1/1] pata_via: HDD of VT6410/6415/6330 cannot be detected issue thread-index: AcrL+TpQbwMb9wGhSpiXPHd6t+1yxw== From: To: , Cc: , X-OriginalArrivalTime: 25 Mar 2010 08:57:44.0488 (UTC) FILETIME=[3BD96A80:01CACBF9] Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org When using VT6410/6415/6330 chips on some VIA's platforms, the HDD connects to VT6410/6415/6330 cannot be detected. It is because the driver detects wrong via_isa_bridge ID, and then cause the this issue happen. This patch will fix this problem. Signed-off-by: Joseph Chan --- a/drivers/ata/pata_via.c 2010-03-16 06:00:01.000000000 -0400 +++ b/drivers/ata/pata_via.c 2010-03-19 10:21:59.000000000 -0400 @@ -576,6 +576,10 @@ u8 rev = isa->revision; pci_dev_put(isa); + if ( (id->device == 0x0415 || id->device == 0x3164) && + (config->id != id->device )) + continue; + if (rev >= config->rev_min && rev <= config->rev_max) break; }