]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.33.2/pata_via-fix-vt6410-6415-6330-detection-issue.patch
5.0-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.33.2 / pata_via-fix-vt6410-6415-6330-detection-issue.patch
CommitLineData
52edb3f3
GKH
1From bc8a67386fd462914269fa93446e1891955a8bb3 Mon Sep 17 00:00:00 2001
2From: JosephChan@via.com.tw <JosephChan@via.com.tw>
3Date: Thu, 25 Mar 2010 20:51:47 +0800
4Subject: pata_via: fix VT6410/6415/6330 detection issue
5
6From: JosephChan@via.com.tw <JosephChan@via.com.tw>
7
8commit bc8a67386fd462914269fa93446e1891955a8bb3 upstream.
9
10When using VT6410/6415/6330 chips on some VIA's platforms, the HDD
11connection to VT6410/6415/6330 cannot be detected.
12
13It is because the driver detects wrong via_isa_bridge ID, and then
14causes this issue to happen.
15
16Signed-off-by: Joseph Chan <josephchan@via.com.tw>
17Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
18Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19
20---
21 drivers/ata/pata_via.c | 4 ++++
22 1 file changed, 4 insertions(+)
23
24--- a/drivers/ata/pata_via.c
25+++ b/drivers/ata/pata_via.c
26@@ -588,6 +588,10 @@ static int via_init_one(struct pci_dev *
27 u8 rev = isa->revision;
28 pci_dev_put(isa);
29
30+ if ((id->device == 0x0415 || id->device == 0x3164) &&
31+ (config->id != id->device))
32+ continue;
33+
34 if (rev >= config->rev_min && rev <= config->rev_max)
35 break;
36 }