PCI: microchip: Gather MSI information from hardware config registers
authorDaire McNamara <daire.mcnamara@microchip.com>
Fri, 28 Jul 2023 13:14:00 +0000 (14:14 +0100)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Tue, 8 Aug 2023 10:58:21 +0000 (12:58 +0200)
commit1abb722888fda4a03e211db9b361281f903375e1
tree8d20b3df0a067c5861da828ffd800c164f4e416e
parent4f0b91247f78ccd702f2da5a17d4524101adfc7d
PCI: microchip: Gather MSI information from hardware config registers

The PCIe Root Complex on PolarFire SoC is configured at bitstream creation
time using Libero. Key MSI-related parameters include the number of
MSIs (1/2/4/8/16/32) and the MSI address. In the device driver, extract
this information from hardware registers at init time, and use it to configure
MSI system, including configuring MSI capability structure correctly in
configuration space.

Link: https://lore.kernel.org/r/20230728131401.1615724-7-daire.mcnamara@microchip.com
Signed-off-by: Daire McNamara <daire.mcnamara@microchip.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
drivers/pci/controller/pcie-microchip-host.c