PCI: dwc: endpoint: Clear outbound address on unmap
authorDamien Le Moal <dlemoal@kernel.org>
Fri, 4 Oct 2024 14:10:00 +0000 (23:10 +0900)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Sun, 27 Oct 2024 19:43:44 +0000 (19:43 +0000)
commit12dd12821f1eb2755643914df2cc900c5e8c9d12
tree3446b55a6242ab7c7a2596127b20e50e4916e571
parent9852d85ec9d492ebef56dc5f229416c925758edc
PCI: dwc: endpoint: Clear outbound address on unmap

Clear the address mapped (outbound_addr array) in dw_pcie_ep_unmap_addr(),
to ensure that dw_pcie_find_index() does not match an ATU index that was
already unmapped.

This is in addition to clearing the ATU index bit in ob_window_map.

Link: https://lore.kernel.org/linux-pci/20241004141000.5080-1-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-designware-ep.c