]> Git Repo - linux.git/commit
PCI: Honor firmware's device disabled status
authorRob Herring <[email protected]>
Fri, 10 Feb 2023 16:43:51 +0000 (10:43 -0600)
committerBjorn Helgaas <[email protected]>
Mon, 13 Feb 2023 21:29:56 +0000 (15:29 -0600)
commit6fffbc7ae1373e10b989afe23a9eeb9c49fe15c3
tree829c3d406b251909de62382aa3cc359f0106022b
parentc768f8c5f40fcdc6f058cc2f02592163d6c6716c
PCI: Honor firmware's device disabled status

If a device has a firmware node (DT/ACPI), and the device is marked
disabled, that is currently ignored. Add a check for this condition and
bail out creating the pci_dev.

This assumes the config space for the device can still be accessed because
they already have by this point in order to identify the device.

Link: https://lore.kernel.org/r/[email protected]
Tested-by: Binbin Zhou <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Cc: Liu Peibao <[email protected]>
Cc: Huacai Chen <[email protected]>
drivers/pci/probe.c
This page took 0.041177 seconds and 4 git commands to generate.