Skip to content

Commit f761e0d

Browse files
Koichiro DenMani-Sadhasivam
authored andcommitted
PCI: dwc: rcar-gen4: Mark BAR0 and BAR2 as Resizable BARs in endpoint mode
R-Car Gen4 (S4) endpoint controller implements the PCIe Resizable BAR capability for BAR0 and BAR2. Advertise them as BAR_RESIZABLE so that EPF requested BAR sizes are reflected to the host. Signed-off-by: Koichiro Den <den@valinux.co.jp> [commit log] Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Niklas Cassel <cassel@kernel.org> Link: https://patch.msgid.link/20260210160315.2272930-1-den@valinux.co.jp
1 parent 6de23f8 commit f761e0d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/pci/controller/dwc/pcie-rcar-gen4.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,9 @@ static int rcar_gen4_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
422422
static const struct pci_epc_features rcar_gen4_pcie_epc_features = {
423423
DWC_EPC_COMMON_FEATURES,
424424
.msi_capable = true,
425+
.bar[BAR_0] = { .type = BAR_RESIZABLE, },
425426
.bar[BAR_1] = { .type = BAR_RESERVED, },
427+
.bar[BAR_2] = { .type = BAR_RESIZABLE, },
426428
.bar[BAR_3] = { .type = BAR_RESERVED, },
427429
.bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = 256 },
428430
.bar[BAR_5] = { .type = BAR_RESERVED, },

0 commit comments

Comments
 (0)