]> Gentwo Git Trees - linux/.git/commit
PCI: dw-rockchip: Describe Resizable BARs as Resizable BARs
authorNiklas Cassel <cassel@kernel.org>
Fri, 31 Jan 2025 18:29:56 +0000 (19:29 +0100)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Thu, 20 Feb 2025 10:26:14 +0000 (10:26 +0000)
commitd3da7d6c12bba3c0a0bb85a2f7837e2029e1b7be
tree33725c51a5f078ac23ad2c27fb00925e00b085fb
parent8006f46551ee005dbb1dc961899ca64e7f84998e
PCI: dw-rockchip: Describe Resizable BARs as Resizable BARs

Looking at section "11.4.4.29 USP_PCIE_RESBAR Registers Summary" in the
Technical Reference Manual (TRM) for RK3588, we can see that none of the
BARs are Fixed BARs, but actually Resizable BARs.

I couldn't find any reference in the TRM for RK3568, but looking at the
downstream PCIe endpoint driver, both RK3568 and RK3588 are treated as
the same, so the BARs on RK3568 must also be Resizable BARs.

Now when we actually have support for Resizable BARs, let's configure
these BARs as such.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Link: https://lore.kernel.org/r/20250131182949.465530-16-cassel@kernel.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/dwc/pcie-dw-rockchip.c