PCIe: dw: rockchip: Init and free msi whenever needed

Change-Id: Ic7bc74c1a05b06c45f83bdb7056a8c4b206dd4dd
[Shawn: squash commit fa7b48efe743 ("PCIe: dw: rockchip: Do not free msi in PM ops")]
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This commit is contained in:
Shawn Lin
2023-01-03 10:26:59 +08:00
committed by Tao Huang
parent d2f0b3cb58
commit c06ee9ef38

View File

@@ -1110,6 +1110,9 @@ static int rk_pcie_host_init(struct pcie_port *pp)
ret = rk_pcie_establish_link(pci);
if (pp->msi_irq > 0)
dw_pcie_msi_init(pp);
return ret;
}