Skip to content

Commit 6a6b66f

Browse files
floatiouskwilczynski
authored andcommitted
PCI: keystone: Describe Resizable BARs as Resizable BARs
Looking at section "12.2.2.4.15 PCIe Subsystem BAR Configuration" in the following Technical Reference Manual (TRM) for AM65x: https://www.ti.com/lit/ug/spruid7e/spruid7e.pdf We can see that BAR2 and BAR5 are not Fixed BARs, but actually Resizable BARs. Now when we actually have support for Resizable BARs, let's configure these BARs as such. Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Niklas Cassel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Manivannan Sadhasivam <[email protected]> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent 3a3d4ca commit 6a6b66f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pci/controller/dwc/pci-keystone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,10 +966,10 @@ static const struct pci_epc_features ks_pcie_am654_epc_features = {
966966
.msix_capable = true,
967967
.bar[BAR_0] = { .type = BAR_RESERVED, },
968968
.bar[BAR_1] = { .type = BAR_RESERVED, },
969-
.bar[BAR_2] = { .type = BAR_FIXED, .fixed_size = SZ_1M, },
969+
.bar[BAR_2] = { .type = BAR_RESIZABLE, },
970970
.bar[BAR_3] = { .type = BAR_FIXED, .fixed_size = SZ_64K, },
971971
.bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = 256, },
972-
.bar[BAR_5] = { .type = BAR_FIXED, .fixed_size = SZ_1M, },
972+
.bar[BAR_5] = { .type = BAR_RESIZABLE, },
973973
.align = SZ_1M,
974974
};
975975

0 commit comments

Comments
 (0)