In case somebody still use it, fix legacy ataraid(4) to work on combined
PATA+AHCI controllers, such as JMicron JMB363. PR: kern/159271 MFC after: 1 week
This commit is contained in:
parent
f62c1a47d6
commit
14b5a2cd6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245446
@ -1351,10 +1351,11 @@ static int
|
||||
ata_raid_read_metadata(device_t subdisk)
|
||||
{
|
||||
devclass_t pci_devclass = devclass_find("pci");
|
||||
devclass_t atapci_devclass = devclass_find("atapci");
|
||||
devclass_t devclass=device_get_devclass(GRANDPARENT(GRANDPARENT(subdisk)));
|
||||
|
||||
/* prioritize vendor native metadata layout if possible */
|
||||
if (devclass == pci_devclass) {
|
||||
if (devclass == pci_devclass || devclass == atapci_devclass) {
|
||||
switch (pci_get_vendor(GRANDPARENT(device_get_parent(subdisk)))) {
|
||||
case ATA_HIGHPOINT_ID:
|
||||
if (ata_raid_hptv3_read_meta(subdisk, ata_raid_arrays))
|
||||
|
Loading…
Reference in New Issue
Block a user