]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Disable outbound windows only for controllers using iATU
authorBaikal Electronics <support@baikalelectronics.ru>
Fri, 24 Jun 2022 14:34:13 +0000 (17:34 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 6 Jul 2022 00:00:51 +0000 (19:00 -0500)
commite813760a06be2c6f46590815355b3a80c548d89d
tree17950b15b510c1bbd66e0649fe68f0e427698615
parent43c35ff81e158584a16b741bb78d0e4462771618
PCI: dwc: Disable outbound windows only for controllers using iATU

Some DWC-based controllers (e.g., pcie-al.c and pci-keystone.c, identified
by the fact that they override the default dw_child_pcie_ops) use their own
address translation approach instead of the DWC internal ATU (iATU).  For
those controllers, skip disabling the iATU outbound windows.

[bhelgaas: commit log, update multiple window comment]
Fixes: b57250eccece ("PCI: dwc: Ensure all outbound ATU windows are reset")
Link: https://lore.kernel.org/r/20220624143428.8334-4-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>
drivers/pci/controller/dwc/pcie-designware-host.c