aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_via.c
diff options
context:
space:
mode:
authorJosephChan@via.com.tw <JosephChan@via.com.tw>2010-03-25 08:51:47 -0400
committerJeff Garzik <jgarzik@redhat.com>2010-03-28 00:51:50 -0400
commitbc8a67386fd462914269fa93446e1891955a8bb3 (patch)
tree45d7906574e40464125235c1e78f02607c7f4855 /drivers/ata/pata_via.c
parentb72c40949b0f04728f2993a1434598d3bad094ea (diff)
pata_via: fix VT6410/6415/6330 detection issue
When using VT6410/6415/6330 chips on some VIA's platforms, the HDD connection to VT6410/6415/6330 cannot be detected. It is because the driver detects wrong via_isa_bridge ID, and then causes this issue to happen. Signed-off-by: Joseph Chan <josephchan@via.com.tw> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_via.c')
-rw-r--r--drivers/ata/pata_via.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c
index 95d39c36acea..c59b40710fbd 100644
--- a/drivers/ata/pata_via.c
+++ b/drivers/ata/pata_via.c
@@ -576,6 +576,10 @@ static int via_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
576 u8 rev = isa->revision; 576 u8 rev = isa->revision;
577 pci_dev_put(isa); 577 pci_dev_put(isa);
578 578
579 if ((id->device == 0x0415 || id->device == 0x3164) &&
580 (config->id != id->device))
581 continue;
582
579 if (rev >= config->rev_min && rev <= config->rev_max) 583 if (rev >= config->rev_min && rev <= config->rev_max)
580 break; 584 break;
581 } 585 }