]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Move dw_pcie_msi_init() to dw_pcie_setup_rc()
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Thu, 25 Mar 2021 07:26:04 +0000 (15:26 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 29 Apr 2021 16:05:58 +0000 (17:05 +0100)
commitafcf63c1f0a9299a2176db5331e8499a027a45d7
tree8f4a492a8fdf506b0820139d696e633bf3d34541
parentf97098ed7f7dcd8c8fcfd81ab85a9071d907dafa
PCI: dwc: Move dw_pcie_msi_init() to dw_pcie_setup_rc()

If the host which makes use of IP's integrated MSI Receiver losts
power during suspend, we need to reinit the RC and MSI Receiver in
resume. But after we move dw_pcie_msi_init() into the core, we have no
API to do so. Usually the dwc users need to call dw_pcie_setup_rc() to
reinit the RC, we can solve this problem by moving dw_pcie_msi_init()
to dw_pcie_setup_rc().

Link: https://lore.kernel.org/r/20210325152604.6e79deba@xhacker.debian
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
drivers/pci/controller/dwc/pcie-designware-host.c