1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/pci/controller/dwc
Serge Semin d1cf738f2b PCI: dwc: Add unroll iATU space support to dw_pcie_disable_atu()
dw_pcie_disable_atu() was introduced by f8aed6ec62 ("PCI: dwc:
designware: Add EP mode support") and supported only the viewport version
of the iATU CSRs.

DW PCIe IP cores v4.80a and newer also support unrolled iATU/eDMA space.
Callers of dw_pcie_disable_atu(), including pci_epc_ops.clear_bar(),
pci_epc_ops.unmap_addr(), and dw_pcie_setup_rc(), don't work correctly when
it is enabled.

Add dw_pcie_disable_atu() support for controllers with unrolled iATU CSRs
enabled.

[bhelgaas: commit log]
Fixes: f8aed6ec62 ("PCI: dwc: designware: Add EP mode support")
Link: https://lore.kernel.org/r/20220624143428.8334-3-Sergey.Semin@baikalelectronics.ru
Tested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
2022-07-05 19:00:51 -05:00
..
Kconfig Merge branch 'remotes/lorenzo/pci/qcom' 2021-11-05 11:28:52 -05:00
Makefile PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver 2021-10-11 15:34:02 -05:00
pci-dra7xx.c bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
pci-exynos.c pci-v5.17-changes 2022-01-16 08:08:11 +02:00
pci-imx6.c PCI: imx6: Fix PERST# start-up sequence 2022-05-11 13:50:45 +01:00
pci-keystone.c PCI: Add defines for normal and subtractive PCI bridges 2022-02-17 15:29:35 -06:00
pci-layerscape-ep.c PCI: layerscape: Correct syntax by changing comma to semicolon 2021-03-22 17:24:19 +00:00
pci-layerscape.c PCI: layerscape: Change to use the DWC common link-up check function 2022-01-05 15:23:15 +00:00
pci-meson.c PCI: Add defines for normal and subtractive PCI bridges 2022-02-17 15:29:35 -06:00
pcie-al.c PCI: al: Remove useless dw_pcie_ops 2021-02-24 11:09:50 -06:00
pcie-armada8k.c PCI: dwc: Move dw_pcie_setup_rc() to DWC common code 2020-11-19 10:51:41 +00:00
pcie-artpec6.c PCI: artpec6: Prefer of_device_get_match_data() 2022-01-03 15:00:55 -06:00
pcie-designware-ep.c PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver 2021-10-11 15:34:02 -05:00
pcie-designware-host.c PCI: dwc: Stop link on host_init errors and de-initialization 2022-07-05 19:00:32 -05:00
pcie-designware-plat.c PCI: designware-plat: Prefer of_device_get_match_data() 2022-01-03 15:01:09 -06:00
pcie-designware.c PCI: dwc: Add unroll iATU space support to dw_pcie_disable_atu() 2022-07-05 19:00:51 -05:00
pcie-designware.h PCI: dwc: Move iATU detection earlier 2021-04-29 17:05:59 +01:00
pcie-dw-rockchip.c PCI: rockchip-dwc: Add legacy interrupt support 2022-05-11 16:01:26 +01:00
pcie-fu740.c Merge branch 'pci/host/fu740' 2022-03-22 17:16:24 -05:00
pcie-hisi.c PCI: hisi: Avoid invalid address space conversions 2022-01-03 15:05:28 -06:00
pcie-histb.c PCI: histb: Drop error data fabrication when config read fails 2021-11-18 13:40:29 -06:00
pcie-intel-gw.c PCI: intel-gw: Rename intel_pcie_port to intel_pcie 2022-01-03 15:01:43 -06:00
pcie-keembay.c PCI: keembay: Add support for Intel Keem Bay 2021-08-20 13:47:05 +01:00
pcie-kirin.c pci-v5.18-changes 2022-03-25 13:02:05 -07:00
pcie-qcom-ep.c PCI: qcom-ep: Move enable/disable resources code to common functions 2022-05-11 10:48:35 +01:00
pcie-qcom.c pci-v5.19-changes 2022-05-27 15:25:10 -07:00
pcie-spear13xx.c PCI: spear13xx: Avoid invalid address space conversions 2022-01-03 15:05:28 -06:00
pcie-tegra194-acpi.c PCI: tegra194: Fix MCFG quirk build regressions 2021-06-18 10:32:34 -05:00
pcie-tegra194.c PCI: tegra194: Remove unnecessary MSI enable reg save and restore 2022-04-11 13:52:35 +01:00
pcie-uniphier-ep.c PCI: uniphier-ep: Add NX1 support 2022-02-11 16:26:21 +00:00
pcie-uniphier.c PCI: uniphier: Rename uniphier_pcie_priv to uniphier_pcie 2022-01-03 15:05:28 -06:00
pcie-visconti.c PCI: visconti: Remove surplus dev_err() when using platform_get_irq_byname() 2021-10-07 16:03:57 +01:00