Skip to content

Commit

Permalink
pata_via: fix VT6410/6415/6330 detection issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
JosephChan@via.com.tw authored and Jeff Garzik committed Mar 28, 2010
1 parent b72c409 commit bc8a673
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/ata/pata_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,10 @@ static int via_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
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;
}
Expand Down

0 comments on commit bc8a673

Please sign in to comment.