PCI: qcom-ep: Pass alignment restriction to the EPF core
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 17 Jul 2023 06:54:53 +0000 (12:24 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Fri, 25 Aug 2023 17:33:18 +0000 (17:33 +0000)
Qcom PCIe EP controllers have 4K alignment restriction for the outbound
window address. Hence, pass this info to the EPF core so that the EPF
drivers can make use of this info.

Link: https://lore.kernel.org/linux-pci/20230717065459.14138-2-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/dwc/pcie-qcom-ep.c

index 0fe7f06..736be5b 100644 (file)
@@ -706,6 +706,7 @@ static const struct pci_epc_features qcom_pcie_epc_features = {
        .core_init_notifier = true,
        .msi_capable = true,
        .msix_capable = false,
+       .align = SZ_4K,
 };
 
 static const struct pci_epc_features *