mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user