drivers: pci: ignore disabled devices
authorMichael Walle <michael@walle.cc>
Sun, 1 Dec 2019 16:45:18 +0000 (17:45 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 5 Dec 2019 15:28:38 +0000 (10:28 -0500)
commita6cd597a78dd9b7fcaba6fe4891f29e86646541b
tree8564bfe6a5a0898a019d29043af1c1687fc89534
parent7e5ee346fc4c26c5f96ae13d599cf31d05fa6772
drivers: pci: ignore disabled devices

PCI devices may be disabled in the device tree. Devices which are probed
by the device tree handle the "status" property and are skipped if
disabled. Devices which are probed by the PCI enumeration don't check
that property. Fix it.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Alex Marginean <alexandru.marginean@nxp.com>
Tested-by: Alex Marginean <alexandru.marginean@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c