You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08: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:
@@ -1126,6 +1126,10 @@ static int rk_pcie_host_init(struct pcie_port *pp)
|
||||
|
||||
dw_pcie_setup_rc(pp);
|
||||
|
||||
/* 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);
|
||||
|
||||
ret = rk_pcie_establish_link(pci);
|
||||
|
||||
if (pp->msi_irq > 0)
|
||||
|
||||
Reference in New Issue
Block a user