summaryrefslogtreecommitdiff
path: root/include/linux/pps_gen_kernel.h
diff options
context:
space:
mode:
authorKoichiro Den <den@valinux.co.jp>2026-02-02 23:54:06 +0900
committerBjorn Helgaas <bhelgaas@google.com>2026-02-19 15:34:19 -0600
commit88a71941b90ddda44f4105e354e82a89b0389bc6 (patch)
treeeaec49f70fa3e1900fdd427885747fbcd06e6d65 /include/linux/pps_gen_kernel.h
parent5ddb66967924e38c680e6a304585c0f553681a3a (diff)
PCI: dwc: ep: Return after clearing BAR-match inbound mapping
dw_pcie_ep_clear_ib_maps() first checks whether the inbound mapping for a BAR is in BAR Match Mode (tracked via ep_func->bar_to_atu[bar]). Once found, the iATU region is disabled and the bookkeeping is cleared. BAR Match Mode and Address Match Mode mappings are mutually exclusive for a given BAR, so there is nothing left for the Address Match Mode teardown path to do after the BAR Match Mode mapping has been removed. Return early after clearing the BAR Match Mode mapping to avoid running the Address Match Mode teardown path. This makes the helper's intention explicit and helps detect incorrect use of pci_epc_set_bar(). Suggested-by: Niklas Cassel <cassel@kernel.org> Signed-off-by: Koichiro Den <den@valinux.co.jp> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Niklas Cassel <cassel@kernel.org> Link: https://patch.msgid.link/20260202145407.503348-2-den@valinux.co.jp
Diffstat (limited to 'include/linux/pps_gen_kernel.h')
0 files changed, 0 insertions, 0 deletions