Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754534AbbDNLHf (ORCPT ); Tue, 14 Apr 2015 07:07:35 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58527 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753337AbbDNLH2 (ORCPT ); Tue, 14 Apr 2015 07:07:28 -0400 From: Rupesh Tatiya To: sarah.a.sharp@linux.intel.com, linux-usb@vger.kernel.org, gregkh@linuxfoundation.org, oliver@neukum.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Rupesh Tatiya Subject: [PATCH v2] usb: Enable LPM for USB 2.01+ full-speed devices Date: Tue, 14 Apr 2015 16:36:55 +0530 Message-Id: <1429009615-17354-1-git-send-email-rtatiya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <6101704ff4dc2e95b67146ed26d01c9f.squirrel@www.codeaurora.org> References: <6101704ff4dc2e95b67146ed26d01c9f.squirrel@www.codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1164 Lines: 30 USB 2.01+ full-speed devices can have extended descriptor as well and can support LPM. Signed-off-by: Rupesh Tatiya --- drivers/usb/core/hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 9ef2d2c..1ed7b5d 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -140,7 +140,7 @@ static int usb_device_supports_lpm(struct usb_device *udev) /* USB 2.1 (and greater) devices indicate LPM support through * their USB 2.0 Extended Capabilities BOS descriptor. */ - if (udev->speed == USB_SPEED_HIGH) { + if (udev->speed == USB_SPEED_HIGH || udev->speed == USB_SPEED_FULL) { if (udev->bos->ext_cap && (USB_LPM_SUPPORT & le32_to_cpu(udev->bos->ext_cap->bmAttributes))) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/