Do not attach to PCI bridges in AHCI driver
Some vendors use the same VID:PID combination in AHCI and PCI bridge cards Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf
This commit is contained in:
parent
8bb090de97
commit
2df622e3b7
@ -375,6 +375,13 @@ ahci_probe(device_t dev)
|
||||
uint32_t devid = pci_get_devid(dev);
|
||||
uint8_t revid = pci_get_revid(dev);
|
||||
|
||||
/*
|
||||
* Ensure it is not a PCI bridge (some vendors use
|
||||
* the same PID and VID in PCI bridge and AHCI cards).
|
||||
*/
|
||||
if (pci_get_class(dev) == PCIC_BRIDGE)
|
||||
return (ENXIO);
|
||||
|
||||
/* Is this a possible AHCI candidate? */
|
||||
if (pci_get_class(dev) == PCIC_STORAGE &&
|
||||
pci_get_subclass(dev) == PCIS_STORAGE_SATA &&
|
||||
|
Loading…
Reference in New Issue
Block a user