diff options
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
-rw-r--r-- | drivers/usb/host/xhci-ring.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 643c2f3f3e73..75c857ec55b9 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c | |||
@@ -280,6 +280,9 @@ static inline int room_on_ring(struct xhci_hcd *xhci, struct xhci_ring *ring, | |||
280 | /* Ring the host controller doorbell after placing a command on the ring */ | 280 | /* Ring the host controller doorbell after placing a command on the ring */ |
281 | void xhci_ring_cmd_db(struct xhci_hcd *xhci) | 281 | void xhci_ring_cmd_db(struct xhci_hcd *xhci) |
282 | { | 282 | { |
283 | if (!(xhci->cmd_ring_state & CMD_RING_STATE_RUNNING)) | ||
284 | return; | ||
285 | |||
283 | xhci_dbg(xhci, "// Ding dong!\n"); | 286 | xhci_dbg(xhci, "// Ding dong!\n"); |
284 | xhci_writel(xhci, DB_VALUE_HOST, &xhci->dba->doorbell[0]); | 287 | xhci_writel(xhci, DB_VALUE_HOST, &xhci->dba->doorbell[0]); |
285 | /* Flush PCI posted writes */ | 288 | /* Flush PCI posted writes */ |