All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: Enable LPM for USB 2.01+ full-speed devices
@ 2015-03-25  6:53 rtatiya
  2015-03-25  6:58 ` Greg KH
       [not found] ` <1427266399-19124-1-git-send-email-rtatiya-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
  0 siblings, 2 replies; 11+ messages in thread
From: rtatiya @ 2015-03-25  6:53 UTC (permalink / raw)
  To: sarah.a.sharp, linux-usb; +Cc: linux-kernel, linux-arm-msm, Rupesh Tatiya

From: Rupesh Tatiya <rtatiya@codeaurora.org>

USB 2.01+ full-speed devices can have extended descriptor as well
and can support LPM.

Change-Id: Ic055d51c02651810d3eb7141bab20a090fe8453b
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
---
 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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-04-14 11:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25  6:53 [PATCH] usb: Enable LPM for USB 2.01+ full-speed devices rtatiya
2015-03-25  6:58 ` Greg KH
     [not found]   ` <20150325065824.GA25520-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-04-08 11:27     ` rtatiya-sgV2jX0FEOL9JmXXK+q4OQ
2015-04-08 11:27       ` rtatiya
2015-04-08 11:37       ` Greg KH
     [not found]       ` <6101704ff4dc2e95b67146ed26d01c9f.squirrel-mMfbam+mt9083fI46fginR2eb7JE58TQ@public.gmane.org>
2015-04-08 13:24         ` gpramod-sgV2jX0FEOL9JmXXK+q4OQ
2015-04-08 13:24           ` gpramod
2015-04-14 11:06       ` [PATCH v2] " Rupesh Tatiya
     [not found] ` <1427266399-19124-1-git-send-email-rtatiya-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2015-03-25  8:41   ` [PATCH] " Oliver Neukum
2015-03-25  8:41     ` Oliver Neukum
2015-04-08 11:24     ` rtatiya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.