diff options
author | Xenia Ragiadakou <burzalodowa@gmail.com> | 2013-08-31 19:09:12 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-17 20:49:24 +0400 |
commit | 9df89d85b407690afa46ddfbccc80bec6869971d (patch) | |
tree | 7e35884e7fdd3202e9f6b73729496adc72267a0b /drivers/usb/core/hcd.c | |
parent | 6c74dada4f5a37037dee1da6a8a7aeb56c558bca (diff) | |
download | linux-9df89d85b407690afa46ddfbccc80bec6869971d.tar.xz |
usbcore: set lpm_capable field for LPM capable root hubs
This patch sets the lpm_capable field for root hubs with LPM capabilities.
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reported-by: Martin MOKREJS <mmokrejs@gmail.com>
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/hcd.c')
-rw-r--r-- | drivers/usb/core/hcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index ab54999da2bf..9795a21bc612 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -1033,6 +1033,7 @@ static int register_root_hub(struct usb_hcd *hcd) dev_name(&usb_dev->dev), retval); return retval; } + usb_dev->lpm_capable = usb_device_supports_lpm(usb_dev); } retval = usb_new_device (usb_dev); |