[mv_pci] Do not attempt to attach disabled PCI ports

Fail probe for PCI port if the respective FDT node is not enabled

Differential Revision:	https://reviews.freebsd.org/D18385
This commit is contained in:
Oleksandr Tymoshenko 2018-12-15 02:35:48 +00:00
parent 0a65536cab
commit afffcaa18f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342106

View File

@ -429,6 +429,9 @@ mv_pcib_probe(device_t self)
OF_parent(node), "marvell,armada-370-pcie")))
return (ENXIO);
if (!ofw_bus_status_okay(self))
return (ENXIO);
device_set_desc(self, "Marvell Integrated PCI/PCI-E Controller");
return (BUS_PROBE_DEFAULT);
}