forked from Minki/linux
pata_via: Fix 6410 misdetect
The discrete VIA ATA chips don't have 0x40 enable bits. We check that properly in one location but not another. This causes some users 6410 RAID cards to be incorrectly skipped. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
d7b5a23fc6
commit
11f6400e92
@ -464,10 +464,11 @@ static int via_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
}
|
||||
pci_dev_put(isa);
|
||||
|
||||
if (!(config->flags & VIA_NO_ENABLES)) {
|
||||
/* 0x40 low bits indicate enabled channels */
|
||||
pci_read_config_byte(pdev, 0x40 , &enable);
|
||||
enable &= 3;
|
||||
if (enable == 0) {
|
||||
if (enable == 0)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user