diff options
Diffstat (limited to 'drivers/usb/host/xhci-hub.c')
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 9992fbfec85f..1ad6bc1951c7 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c | |||
@@ -732,9 +732,11 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, | |||
732 | /* Set the U1 and U2 exit latencies. */ | 732 | /* Set the U1 and U2 exit latencies. */ |
733 | memcpy(buf, &usb_bos_descriptor, | 733 | memcpy(buf, &usb_bos_descriptor, |
734 | USB_DT_BOS_SIZE + USB_DT_USB_SS_CAP_SIZE); | 734 | USB_DT_BOS_SIZE + USB_DT_USB_SS_CAP_SIZE); |
735 | temp = readl(&xhci->cap_regs->hcs_params3); | 735 | if ((xhci->quirks & XHCI_LPM_SUPPORT)) { |
736 | buf[12] = HCS_U1_LATENCY(temp); | 736 | temp = readl(&xhci->cap_regs->hcs_params3); |
737 | put_unaligned_le16(HCS_U2_LATENCY(temp), &buf[13]); | 737 | buf[12] = HCS_U1_LATENCY(temp); |
738 | put_unaligned_le16(HCS_U2_LATENCY(temp), &buf[13]); | ||
739 | } | ||
738 | 740 | ||
739 | /* Indicate whether the host has LTM support. */ | 741 | /* Indicate whether the host has LTM support. */ |
740 | temp = readl(&xhci->cap_regs->hcc_params); | 742 | temp = readl(&xhci->cap_regs->hcc_params); |