pci: xilinx: Handle size of ecam region properly
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 17 May 2024 18:14:49 +0000 (19:14 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 22 Apr 2025 21:08:47 +0000 (15:08 -0600)
commitcb5af7aa4f5119faf738542f6c066fa5bb352aa1
treeb6878e1d6573c5cff07673ad2c04cd29a93004a7
parentc8ffd1356d42223cbb8c86280a083cc3c93e6426
pci: xilinx: Handle size of ecam region properly

Probe size of ecam from devicetree properly and cap accessible
bus number accorading to ecam region size to ensure we don't go
beyond hardware address space.

Also disable all interrupts to ensure errors are handled silently.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/pci/pcie_xilinx.c