From ee909ff4362971e825da2abdff9bbfe7409cb38a Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Wed, 12 Apr 2023 09:58:27 +0800 Subject: [PATCH] PCIe: dw: rockchip: Init msi again when calling resume If the controller is powered down and lost its settings of MSI, host driver should take response of recovering all the settings. Signed-off-by: Shawn Lin Change-Id: I9f1fd9078e500388f8d9753cc5ab7882b404d142 --- drivers/pci/controller/dwc/pcie-dw-rockchip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-dw-rockchip.c b/drivers/pci/controller/dwc/pcie-dw-rockchip.c index eafe5c50b20a..33b6dc33ad0a 100644 --- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c +++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c @@ -1927,6 +1927,9 @@ std_rc_done: goto err; } + if (rk_pcie->pci->pp.msi_irq > 0) + dw_pcie_msi_init(&rk_pcie->pci->pp); + return 0; err: rk_pcie_disable_power(rk_pcie);