aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorNiklas Cassel <cassel@kernel.org>2025-09-08 18:19:42 +0200
committerBjorn Helgaas <bhelgaas@google.com>2025-09-12 15:09:32 -0500
commitf272210b28d050df56ec7dfaecb9fa3bebca6419 (patch)
tree17ec21719721ac85020189452589934cf681b8a9 /drivers/pci/controller/dwc
parentPCI: endpoint: pci-epf-test: Limit PCIe BAR size for fixed BARs (diff)
downloadwireguard-linux-f272210b28d050df56ec7dfaecb9fa3bebca6419.tar.xz
wireguard-linux-f272210b28d050df56ec7dfaecb9fa3bebca6419.zip
PCI: endpoint: pci-epf-test: Fix doorbell test support
The doorbell feature temporarily overrides the inbound translation to point to the address stored in epf_test->db_bar.phys_addr, i.e., it calls set_bar() twice without ever calling clear_bar(), as calling clear_bar() would clear the BAR's PCI address assigned by the host. Thus, when disabling the doorbell, restore the inbound translation to point to the memory allocated for the BAR. Without this, running the PCI endpoint kselftest doorbell test case more than once would fail. Fixes: eff0c286aa91 ("PCI: endpoint: pci-epf-test: Add doorbell test support") Signed-off-by: Niklas Cassel <cassel@kernel.org> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20250908161942.534799-2-cassel@kernel.org
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions