]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: pci_mvebu: Fix place of link up detection
authorPali Rohár <pali@kernel.org>
Fri, 22 Oct 2021 14:22:12 +0000 (16:22 +0200)
committerStefan Roese <sr@denx.de>
Wed, 3 Nov 2021 05:45:26 +0000 (06:45 +0100)
commit79b4eb21b486e30b29c5ba3038ea6ba0e1968458
treefb065f0552d59dcb355bd28072fe46d2ac2f2016
parent452f2e73c6e9a9f9c2cd928e5f2fde819b9c91f0
pci: pci_mvebu: Fix place of link up detection

PCI Bridge is always accessible also when link is down. So move detection
of link up from mvebu_pcie_of_to_plat() function to mvebu_pcie_valid_addr()
function which is used when accessing PCI config space.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci_mvebu.c