]> git.baikalelectronics.ru Git - uboot.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)
commit918676b6385079581e345ac9877156a6d5f2a3ac
tree34fefa8b5b79b9122847cbc9b659d893849ee23e
parentab52df4259caa46ed8b3c4d52575367b1139af69
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