From patchwork Thu Mar 25 12:51:47 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: 48514 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 976A2B7CB6 for ; Thu, 25 Mar 2010 23:51:52 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753176Ab0CYMvu (ORCPT ); Thu, 25 Mar 2010 08:51:50 -0400 Received: from exchtp08.via.com.tw ([61.66.243.7]:61761 "EHLO exchtp08.via.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752746Ab0CYMvt (ORCPT ); Thu, 25 Mar 2010 08:51:49 -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 20:51:48 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: [Patch 1/1 v2] pata_via: HDD of VT6410/6415/6330 cannot be detected issue Date: Thu, 25 Mar 2010 20:51:47 +0800 Message-ID: <9E058EE846170743AF7338FE064CB5AB38B477@exchtp04.taipei.via.com.tw> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Patch 1/1 v2] pata_via: HDD of VT6410/6415/6330 cannot be detected issue thread-index: AcrMGe3ueTN7SzNbRsCdvGpbqQpJzQ== From: To: , , Cc: , , X-OriginalArrivalTime: 25 Mar 2010 12:51:48.0217 (UTC) FILETIME=[EE906690:01CACC19] 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-25 08:47:15.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; }