PCI: microchip: Re-partition code between probe() and init()
authorDaire McNamara <daire.mcnamara@microchip.com>
Fri, 28 Jul 2023 13:14:01 +0000 (14:14 +0100)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Tue, 8 Aug 2023 10:58:21 +0000 (12:58 +0200)
commitbac406c34fbc906f09479af72cb6a908a5d1db1d
tree3866446af45130488469db157bd2278bbd6f950f
parent1abb722888fda4a03e211db9b361281f903375e1
PCI: microchip: Re-partition code between probe() and init()

Continuing to use pci_host_common_probe() for the PCIe Root Complex on
PolarFire SoC is leading to an extremely large _init() function and some
unnatural code flow. Re-partition the code so that some tasks are done
in a _probe() routine, which calls pci_host_common_probe() and then use
a much smaller _init() function, mainly to enable interrupts after
address translation tables are set up.

Link: https://lore.kernel.org/r/20230728131401.1615724-8-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