]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:48 +0000 (14:23 +0200)
commitb9f78a951a32b377cfec2e1ae4f5db2e4a1947d9
treec391e2b52fdfdc4c2f154641cc9c0b3f5c3942b8
parentc23611ffdd634d76142dc4e302df8df4e031dd71
PCI: dwc: Disable outbound windows only for controllers using iATU

[ Upstream commit 3052af8ab0cf1a8a712b7bdde0341113fabbbd0b ]

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: f044259df060 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pcie-designware-host.c