arm: a37xx: pci: Do not try to access other buses when link is down
authorPali Rohár <pali@kernel.org>
Tue, 15 Feb 2022 10:23:35 +0000 (11:23 +0100)
committerStefan Roese <sr@denx.de>
Thu, 17 Feb 2022 13:17:07 +0000 (14:17 +0100)
commit2727e9dd2795c38a20dda9bda24c3f18fbbbb2bf
tree33bc05f0abe7482cd90e5b70327f1d71b7735dad
parent0934dddc643644ccf6e9203c8925c5573dd7779c
arm: a37xx: pci: Do not try to access other buses when link is down

If a PIO request is executed while link-down, the whole controller gets
stuck in a non-functional state, and even after link comes up again, PIO
requests won't work anymore, and a reset of the whole PCIe controller is
needed. Therefore we need to prevent sending PIO requests while the link
is down.

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