[PATCH v3 0/7] PCI: microchip: Fixes and clean-ups

daire.mcnamara
2023-07-28T13:14:10Z

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@microchip.com/

Resending with correct e-mail address list

These patches are regenerated on v6.5-rc3.

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-rc3

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@microchip.com>
cc: Lorenzo Pieralisi <lpieralisi@kernel.org>
cc: "Krzysztof Wilczyński" <kw@linux.com>
cc: Rob Herring <robh@kernel.org>
cc: Bjorn Helgaas <bhelgaas@google.com>
cc: linux-riscv@lists.infradead.org
cc: linux-pci@vger.kernel.org

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