PCI: rockchip: dw-ep: Resize bar after hot reset

Change-Id: I079d354422b9e1c4895ac75781e33c924467991d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2024-01-08 14:31:03 +08:00
committed by Tao Huang
parent 8c11a4fe4f
commit b2da6c9353

View File

@@ -924,6 +924,10 @@ static void rockchip_pcie_hot_rst_work(struct work_struct *work)
u32 status;
int ret;
dw_pcie_dbi_ro_wr_en(&rockchip->pci);
rockchip_pcie_resize_bar(rockchip);
dw_pcie_dbi_ro_wr_dis(&rockchip->pci);
if (rockchip_pcie_readl_apb(rockchip, PCIE_CLIENT_HOT_RESET_CTRL) & PCIE_LTSSM_APP_DLY2_EN) {
ret = readl_poll_timeout(rockchip->apb_base + PCIE_CLIENT_LTSSM_STATUS,
status, ((status & 0x3F) == 0), 100, PCIE_HOTRESET_TMOUT_US);