diff options
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 2d1310220832..30f47d92a610 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -359,9 +359,10 @@ static int xhci_try_enable_msi(struct usb_hcd *hcd) | |||
359 | /* fall back to msi*/ | 359 | /* fall back to msi*/ |
360 | ret = xhci_setup_msi(xhci); | 360 | ret = xhci_setup_msi(xhci); |
361 | 361 | ||
362 | if (!ret) | 362 | if (!ret) { |
363 | /* hcd->irq is 0, we have MSI */ | 363 | hcd->msi_enabled = 1; |
364 | return 0; | 364 | return 0; |
365 | } | ||
365 | 366 | ||
366 | if (!pdev->irq) { | 367 | if (!pdev->irq) { |
367 | xhci_err(xhci, "No msi-x/msi found and no IRQ in BIOS\n"); | 368 | xhci_err(xhci, "No msi-x/msi found and no IRQ in BIOS\n"); |
@@ -1763,7 +1764,7 @@ static int xhci_configure_endpoint_result(struct xhci_hcd *xhci, | |||
1763 | 1764 | ||
1764 | switch (*cmd_status) { | 1765 | switch (*cmd_status) { |
1765 | case COMP_COMMAND_ABORTED: | 1766 | case COMP_COMMAND_ABORTED: |
1766 | case COMP_STOPPED: | 1767 | case COMP_COMMAND_RING_STOPPED: |
1767 | xhci_warn(xhci, "Timeout while waiting for configure endpoint command\n"); | 1768 | xhci_warn(xhci, "Timeout while waiting for configure endpoint command\n"); |
1768 | ret = -ETIME; | 1769 | ret = -ETIME; |
1769 | break; | 1770 | break; |
@@ -1813,7 +1814,7 @@ static int xhci_evaluate_context_result(struct xhci_hcd *xhci, | |||
1813 | 1814 | ||
1814 | switch (*cmd_status) { | 1815 | switch (*cmd_status) { |
1815 | case COMP_COMMAND_ABORTED: | 1816 | case COMP_COMMAND_ABORTED: |
1816 | case COMP_STOPPED: | 1817 | case COMP_COMMAND_RING_STOPPED: |
1817 | xhci_warn(xhci, "Timeout while waiting for evaluate context command\n"); | 1818 | xhci_warn(xhci, "Timeout while waiting for evaluate context command\n"); |
1818 | ret = -ETIME; | 1819 | ret = -ETIME; |
1819 | break; | 1820 | break; |
@@ -3432,7 +3433,7 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd, | |||
3432 | ret = reset_device_cmd->status; | 3433 | ret = reset_device_cmd->status; |
3433 | switch (ret) { | 3434 | switch (ret) { |
3434 | case COMP_COMMAND_ABORTED: | 3435 | case COMP_COMMAND_ABORTED: |
3435 | case COMP_STOPPED: | 3436 | case COMP_COMMAND_RING_STOPPED: |
3436 | xhci_warn(xhci, "Timeout waiting for reset device command\n"); | 3437 | xhci_warn(xhci, "Timeout waiting for reset device command\n"); |
3437 | ret = -ETIME; | 3438 | ret = -ETIME; |
3438 | goto command_cleanup; | 3439 | goto command_cleanup; |
@@ -3817,7 +3818,7 @@ static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev, | |||
3817 | */ | 3818 | */ |
3818 | switch (command->status) { | 3819 | switch (command->status) { |
3819 | case COMP_COMMAND_ABORTED: | 3820 | case COMP_COMMAND_ABORTED: |
3820 | case COMP_STOPPED: | 3821 | case COMP_COMMAND_RING_STOPPED: |
3821 | xhci_warn(xhci, "Timeout while waiting for setup device command\n"); | 3822 | xhci_warn(xhci, "Timeout while waiting for setup device command\n"); |
3822 | ret = -ETIME; | 3823 | ret = -ETIME; |
3823 | break; | 3824 | break; |