]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/usb/host/xhci-dbgcap.c
drivers: Remove explicit invocations of mmiowb()
[linux.git] / drivers / usb / host / xhci-dbgcap.c
index c78be578abb065af0e0715352f8c502345907ad7..52e32644a4b2fb4ea25a8d7270d883726ced2b94 100644 (file)
@@ -421,8 +421,6 @@ static int xhci_dbc_mem_init(struct xhci_hcd *xhci, gfp_t flags)
        string_length = xhci_dbc_populate_strings(dbc->string);
        xhci_dbc_init_contexts(xhci, string_length);
 
-       mmiowb();
-
        xhci_dbc_eps_init(xhci);
        dbc->state = DS_INITIALIZED;
 
@@ -516,7 +514,6 @@ static int xhci_do_dbc_stop(struct xhci_hcd *xhci)
                return -1;
 
        writel(0, &dbc->regs->control);
-       xhci_dbc_mem_cleanup(xhci);
        dbc->state = DS_DISABLED;
 
        return 0;
@@ -562,8 +559,10 @@ static void xhci_dbc_stop(struct xhci_hcd *xhci)
        ret = xhci_do_dbc_stop(xhci);
        spin_unlock_irqrestore(&dbc->lock, flags);
 
-       if (!ret)
+       if (!ret) {
+               xhci_dbc_mem_cleanup(xhci);
                pm_runtime_put_sync(xhci_to_hcd(xhci)->self.controller);
+       }
 }
 
 static void