]> git.baikalelectronics.ru Git - uboot.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)
commitf213d9fe4f11b20edb3e338ace30d10f4bad3693
treefb065f0552d59dcb355bd28072fe46d2ac2f2016
parente4a1403f26655492a4388458c9d244cda8addd01
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