]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
xhci: Use device_iommu_mapped()
authorJoerg Roedel <jroedel@suse.de>
Fri, 30 Nov 2018 12:16:38 +0000 (13:16 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 17 Dec 2018 11:47:36 +0000 (12:47 +0100)
Replace the dev->iommu_group check with a proper function
call that better reprensents its purpose.

Cc: Mathias Nyman <mathias.nyman@intel.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/usb/host/xhci.c

index 0420eefa647a15cb5321dfa5fd95556a5a5432e5..6216e82541282d9db03ce8d2c6c773b8622155cf 100644 (file)
@@ -244,7 +244,7 @@ static void xhci_zero_64b_regs(struct xhci_hcd *xhci)
         * an iommu. Doing anything when there is no iommu is definitely
         * unsafe...
         */
-       if (!(xhci->quirks & XHCI_ZERO_64B_REGS) || !dev->iommu_group)
+       if (!(xhci->quirks & XHCI_ZERO_64B_REGS) || !device_iommu_mapped(dev))
                return;
 
        xhci_info(xhci, "Zeroing 64bit base registers, expecting fault\n");