]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: Skip configuring invalid P2P bridge devices
authorPali Rohár <pali@kernel.org>
Thu, 7 Oct 2021 12:50:58 +0000 (14:50 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Oct 2021 23:45:07 +0000 (19:45 -0400)
commit63ae80dd98d4c0d1123317043cdf2596e724e43a
tree34fefa8b5b79b9122847cbc9b659d893849ee23e
parentb9caab8b47ae6ad6a317a9ed05e90475248739d7
pci: Skip configuring invalid P2P bridge devices

Function dm_pci_hose_probe_bus() expects that bus is valid PCI device with
Bridge header type (0x01). So add check before touching PCI config space to
prevent misconfiguring some non-standard device.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci-uclass.c