]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'pci/controller/dwc-rcar-gen4-ep'
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Apr 2026 17:50:46 +0000 (12:50 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Apr 2026 17:50:46 +0000 (12:50 -0500)
- 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

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

index 1198ddc1752c8cbd5293fde9ca5f96a7f9efcf84,396ef94322998d0234448431956cc75b16230c31..8b03c42f8c84c86406fccd0cefa189664abeea31
@@@ -413,11 -422,13 +413,13 @@@ static int rcar_gen4_pcie_ep_raise_irq(
  static const struct pci_epc_features rcar_gen4_pcie_epc_features = {
        DWC_EPC_COMMON_FEATURES,
        .msi_capable = true,
 -      .bar[BAR_1] = { .type = BAR_RESERVED, },
+       .bar[BAR_0] = { .type = BAR_RESIZABLE, },
 -      .bar[BAR_3] = { .type = BAR_RESERVED, },
 +      .bar[BAR_1] = { .type = BAR_DISABLED, },
+       .bar[BAR_2] = { .type = BAR_RESIZABLE, },
 +      .bar[BAR_3] = { .type = BAR_DISABLED, },
        .bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = 256 },
 -      .bar[BAR_5] = { .type = BAR_RESERVED, },
 +      .bar[BAR_5] = { .type = BAR_DISABLED, },
-       .align = SZ_1M,
+       .align = SZ_4K,
  };
  
  static const struct pci_epc_features*