mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
PCIe: dw: rockchip: Disabled BAR0 and BAR1
fix the following case: [ 2.143145] pci 0000:00:00.0: BAR 0: no space for [mem size 0x40000000] [ 2.143155] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x40000000] [ 2.143161] pci 0000:00:00.0: BAR 1: no space for [mem size 0x40000000] [ 2.143168] pci 0000:00:00.0: BAR 1: failed to assign [mem size 0x40000000] Change-Id: I5eca2adb49d83c775036df7e961dab5c9fbfffbb Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -1145,6 +1145,10 @@ static int rk_add_pcie_port(struct rk_pcie *rk_pcie, struct platform_device *pde
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Disable BAR0 BAR1 */
|
||||
dw_pcie_writel_dbi(pci, PCIE_TYPE0_HDR_DBI2_OFFSET + 0x10 + BAR_0 * 4, 0);
|
||||
dw_pcie_writel_dbi(pci, PCIE_TYPE0_HDR_DBI2_OFFSET + 0x10 + BAR_1 * 4, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user