Skip to content

Commit 1e6df55

Browse files
committed
Merge branch 'pci/controller/dwc-rcar-gen4-ep'
- Mark BAR0 and BAR2 as Resizable (Koichiro Den) - Reduce EPC BAR alignment requirement to 4K (Koichiro Den) * pci/controller/dwc-rcar-gen4-ep: PCI: dwc: rcar-gen4: Change EPC BAR alignment to 4K as per the documentation PCI: dwc: rcar-gen4: Mark BAR0 and BAR2 as Resizable BARs in endpoint mode # Conflicts: # drivers/pci/controller/dwc/pcie-rcar-gen4.c
2 parents 07f7d0f + 13f55a7 commit 1e6df55

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,13 @@ static int rcar_gen4_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
413413
static const struct pci_epc_features rcar_gen4_pcie_epc_features = {
414414
DWC_EPC_COMMON_FEATURES,
415415
.msi_capable = true,
416+
.bar[BAR_0] = { .type = BAR_RESIZABLE, },
416417
.bar[BAR_1] = { .type = BAR_DISABLED, },
418+
.bar[BAR_2] = { .type = BAR_RESIZABLE, },
417419
.bar[BAR_3] = { .type = BAR_DISABLED, },
418420
.bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = 256 },
419421
.bar[BAR_5] = { .type = BAR_DISABLED, },
420-
.align = SZ_1M,
422+
.align = SZ_4K,
421423
};
422424

423425
static const struct pci_epc_features*

0 commit comments

Comments
 (0)