MFC r199717:
Do not attach JMicrons with single PCI function. They are not working as AHCI for some reason, even when declaring so. Let atajmicron configure them for us and provide PATA support.
This commit is contained in:
parent
46bcf1b57f
commit
9b257cc53d
@ -254,6 +254,10 @@ ahci_probe(device_t dev)
|
||||
for (i = 0; ahci_ids[i].id != 0; i++) {
|
||||
if (ahci_ids[i].id == devid &&
|
||||
(valid || !(ahci_ids[i].quirks & AHCI_Q_NOFORCE))) {
|
||||
/* Do not attach JMicrons with single PCI function. */
|
||||
if (pci_get_vendor(dev) == 0x197b &&
|
||||
(pci_read_config(dev, 0xdf, 1) & 0x40) == 0)
|
||||
return (ENXIO);
|
||||
snprintf(buf, sizeof(buf), "%s AHCI SATA controller",
|
||||
ahci_ids[i].name);
|
||||
device_set_desc_copy(dev, buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user