]> git.ipfire.org Git - thirdparty/u-boot.git/commit
PCI: xilinx-nwl: Avoid crashing if configuring when the link is down
authorSean Anderson <sean.anderson@linux.dev>
Tue, 6 Jan 2026 22:08:53 +0000 (17:08 -0500)
committerMichal Simek <michal.simek@amd.com>
Mon, 12 Jan 2026 09:33:27 +0000 (10:33 +0100)
commitd9049a2142fdbbb5cb4a824afda9644cbd744cb8
tree294f5cb9831af1f6f89fe890a1a5d477be5b6282
parent7a2764721af6cbaabfd496f3bcfa2427fc3d7cc0
PCI: xilinx-nwl: Avoid crashing if configuring when the link is down

The ECAM will return a slave error if we access non-root devices while
the link is down. Add a check for this like Linux does so we don't
crash.

Fixes: 2f5ad77cfea ("PCI: zynqmp: Add ZynqMP NWL PCIe root port driver")
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20260106220853.731358-1-sean.anderson@linux.dev
drivers/pci/pcie-xilinx-nwl.c