svn commit: r288356 - stable/10/sys/dev/ahci
Alexander Motin
mav at FreeBSD.org
Tue Sep 29 05:25:35 UTC 2015
Author: mav
Date: Tue Sep 29 05:25:34 2015
New Revision: 288356
URL: https://svnweb.freebsd.org/changeset/base/288356
Log:
MFC r288111: Allow AHCI driver attach to all known chips reporting RAID class.
Reported by: Michael BlackHeart <amdmiek at gmail.com>
Modified:
stable/10/sys/dev/ahci/ahci_pci.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/ahci/ahci_pci.c
==============================================================================
--- stable/10/sys/dev/ahci/ahci_pci.c Tue Sep 29 05:24:16 2015 (r288355)
+++ stable/10/sys/dev/ahci/ahci_pci.c Tue Sep 29 05:25:34 2015 (r288356)
@@ -326,6 +326,9 @@ ahci_probe(device_t dev)
pci_get_subclass(dev) == PCIS_STORAGE_SATA &&
pci_get_progif(dev) == PCIP_STORAGE_SATA_AHCI_1_0)
valid = 1;
+ else if (pci_get_class(dev) == PCIC_STORAGE &&
+ pci_get_subclass(dev) == PCIS_STORAGE_RAID)
+ valid = 2;
/* Is this a known AHCI chip? */
for (i = 0; ahci_ids[i].id != 0; i++) {
if (ahci_ids[i].id == devid &&
@@ -342,7 +345,7 @@ ahci_probe(device_t dev)
return (BUS_PROBE_DEFAULT);
}
}
- if (!valid)
+ if (valid != 1)
return (ENXIO);
device_set_desc_copy(dev, "AHCI SATA controller");
return (BUS_PROBE_DEFAULT);
More information about the svn-src-stable
mailing list