xhci: also avoid the XHCI_ZERO_64B_REGS quirk with a passthrough iommu
authorD Scott Phillips <scott@os.amperecomputing.com>
Thu, 30 Mar 2023 14:30:54 +0000 (17:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 14:41:58 +0000 (16:41 +0200)
commitecaa4902439298f6b0e29f47424a86b310a9ff4f
treefe0bc8024deed60579c287936d88306455dc6ad7
parent4c7f9d2e413dc06a157c4e5dccde84aaf4655eb3
xhci: also avoid the XHCI_ZERO_64B_REGS quirk with a passthrough iommu

Previously the quirk was skipped when no iommu was present. The same
rationale for skipping the quirk also applies in the iommu.passthrough=1
case.

Skip applying the XHCI_ZERO_64B_REGS quirk if the device's iommu domain is
passthrough.

Fixes: 12de0a35c996 ("xhci: Add quirk to zero 64bit registers on Renesas PCIe controllers")
Cc: stable <stable@kernel.org>
Signed-off-by: D Scott Phillips <scott@os.amperecomputing.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20230330143056.1390020-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c