diff options
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index a4b0ce13fa0c..8d7fcbbe6ade 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -471,6 +471,8 @@ static bool compliance_mode_recovery_timer_quirk_check(void) | |||
471 | 471 | ||
472 | dmi_product_name = dmi_get_system_info(DMI_PRODUCT_NAME); | 472 | dmi_product_name = dmi_get_system_info(DMI_PRODUCT_NAME); |
473 | dmi_sys_vendor = dmi_get_system_info(DMI_SYS_VENDOR); | 473 | dmi_sys_vendor = dmi_get_system_info(DMI_SYS_VENDOR); |
474 | if (!dmi_product_name || !dmi_sys_vendor) | ||
475 | return false; | ||
474 | 476 | ||
475 | if (!(strstr(dmi_sys_vendor, "Hewlett-Packard"))) | 477 | if (!(strstr(dmi_sys_vendor, "Hewlett-Packard"))) |
476 | return false; | 478 | return false; |
@@ -888,7 +890,7 @@ int xhci_suspend(struct xhci_hcd *xhci) | |||
888 | command &= ~CMD_RUN; | 890 | command &= ~CMD_RUN; |
889 | xhci_writel(xhci, command, &xhci->op_regs->command); | 891 | xhci_writel(xhci, command, &xhci->op_regs->command); |
890 | if (handshake(xhci, &xhci->op_regs->status, | 892 | if (handshake(xhci, &xhci->op_regs->status, |
891 | STS_HALT, STS_HALT, 100*100)) { | 893 | STS_HALT, STS_HALT, XHCI_MAX_HALT_USEC)) { |
892 | xhci_warn(xhci, "WARN: xHC CMD_RUN timeout\n"); | 894 | xhci_warn(xhci, "WARN: xHC CMD_RUN timeout\n"); |
893 | spin_unlock_irq(&xhci->lock); | 895 | spin_unlock_irq(&xhci->lock); |
894 | return -ETIMEDOUT; | 896 | return -ETIMEDOUT; |