From: Daire McNamara <daire.mcnamara@xxxxxxxxxxxxx> This patch series contains fixes and clean-ups for the Microchip PolarFire SoC PCIe driver These patches are extracted from the link below to separate them from the outbound and inbound range handling which is taking considerable time. Link: https://lore.kernel.org/linux-riscv/20230111125323.1911373-1-daire.mcnamara@xxxxxxxxxxxxx/ These patches are regenerated on v6.5-rc4. Main changes from v2: - Reworked "Gather MSI information..." as suggested by Bjorn - merged 'Gather MSI Information..." and "Rename and refactor" as suggested by Bjorn - Re-generated on v6.5-rc4 Main Changes from v1: - Dropped "Remove cast warning for devm_add_action_or_reset()". This has been overtaken by a patch series from Krzysztof Wilczynski. - Improved the comment for "Enable building driver as a module" to clarify what enables building the driver as a module. - Split "Gather MSI information from hardware config registers", for clarity, into: - "Gather MSI information from hardware config registers" purely changing the of source of MSI-related information (Num MSIs and MSI address) from #defines (which can be incorrect) to FPGA configuration registers (which is the ultimate source of truth), and a - "Rename and refactor ..." patch as a function's code is now clearly unrelated to its current name. cc: Conor Dooley <conor.dooley@xxxxxxxxxxxxx> cc: Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx> cc: "Krzysztof Wilczyński" <kw@xxxxxxxxx> cc: Rob Herring <robh@xxxxxxxxxx> cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> cc: linux-riscv@xxxxxxxxxxxxxxxxxxx cc: linux-pci@xxxxxxxxxxxxxxx Daire McNamara (8): PCI: microchip: Correct the DED and SEC interrupt bit offsets PCI: microchip: Enable building driver as a module PCI: microchip: Align register, offset, and mask names with hw docs PCI: microchip: Enable event handlers to access bridge and ctrl ptrs PCI: microchip: Clean up initialisation of interrupts PCI: microchip: Gather MSI information from hardware config registers PCI: microchip: Re-partition code between probe() and init() drivers/pci/controller/Kconfig | 2 +- drivers/pci/controller/pcie-microchip-host.c | 393 +++++++++++-------- 2 files changed, 233 insertions(+), 162 deletions(-) base-commit: 6eaae198076080886b9e7d57f4ae06fa782f90ef -- 2.25.1