Before modularization commit, atapci driver was attaching only to devices of
storage class. This check was lost. It is not important for the most cases, but as it was reported on current@, it does important for sis driver and surely inportant for AHCI driver. So restore it there. Submitted by: Toshikazu ICHINOSEKI, Andrey V. Elsukov Discussed on: current@
This commit is contained in:
parent
3e6eb1349a
commit
3b6abee3bb
@ -73,8 +73,9 @@ ata_ahci_probe(device_t dev)
|
||||
char buffer[64];
|
||||
|
||||
/* is this a possible AHCI candidate ? */
|
||||
if (pci_get_subclass(dev) != PCIS_STORAGE_SATA)
|
||||
return ENXIO;
|
||||
if (pci_get_class(dev) != PCIC_STORAGE ||
|
||||
pci_get_subclass(dev) != PCIS_STORAGE_SATA)
|
||||
return (ENXIO);
|
||||
|
||||
/* is this PCI device flagged as an AHCI compliant chip ? */
|
||||
if (pci_read_config(dev, PCIR_PROGIF, 1) != PCIP_STORAGE_SATA_AHCI_1_0)
|
||||
|
@ -105,6 +105,9 @@ ata_sis_probe(device_t dev)
|
||||
char buffer[64];
|
||||
int found = 0;
|
||||
|
||||
if (pci_get_class(dev) != PCIC_STORAGE)
|
||||
return (ENXIO);
|
||||
|
||||
if (pci_get_vendor(dev) != ATA_SIS_ID)
|
||||
return ENXIO;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user