PCI: mobiveil: Add configured inbound windows counter
Current code only keeps track of the number of outbound windows configured but it does not for inbound windows. Add a counter to keep track of initialized inbound windows. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Minghuan Lian <Minghuan.Lian@nxp.com> Reviewed-by: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>
This commit is contained in:
parent
ccd34dac2e
commit
4b7e2e59f0
|
@ -481,6 +481,7 @@ static void program_ib_windows(struct mobiveil_pcie *pcie, int win_num,
|
|||
|
||||
csr_writel(pcie, pci_addr, PAB_PEX_AMAP_PEX_WIN_L(win_num));
|
||||
csr_writel(pcie, 0, PAB_PEX_AMAP_PEX_WIN_H(win_num));
|
||||
pcie->ib_wins_configured++;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue