]>
Commit | Line | Data |
---|---|---|
52edb3f3 GKH |
1 | From bc8a67386fd462914269fa93446e1891955a8bb3 Mon Sep 17 00:00:00 2001 |
2 | From: JosephChan@via.com.tw <JosephChan@via.com.tw> | |
3 | Date: Thu, 25 Mar 2010 20:51:47 +0800 | |
4 | Subject: pata_via: fix VT6410/6415/6330 detection issue | |
5 | ||
6 | From: JosephChan@via.com.tw <JosephChan@via.com.tw> | |
7 | ||
8 | commit bc8a67386fd462914269fa93446e1891955a8bb3 upstream. | |
9 | ||
10 | When using VT6410/6415/6330 chips on some VIA's platforms, the HDD | |
11 | connection to VT6410/6415/6330 cannot be detected. | |
12 | ||
13 | It is because the driver detects wrong via_isa_bridge ID, and then | |
14 | causes this issue to happen. | |
15 | ||
16 | Signed-off-by: Joseph Chan <josephchan@via.com.tw> | |
17 | Signed-off-by: Jeff Garzik <jgarzik@redhat.com> | |
18 | Signed-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 | } |