Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: core: hub: Enable/disable U1/U2 in configured state

SET_FEATURE(U1/U2_ENABLE) and CLEAR_FEATURE(U1/U2) only apply while the
device is in configured state. Add proper check in usb_disable_lpm() and
usb_enable_lpm() for enabling/disabling device-initiated U1/U2.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thinh Nguyen and committed by
Greg Kroah-Hartman
fea3af5e d991f855

+2 -2
+2 -2
drivers/usb/core/hub.c
··· 4139 4139 if (!udev || !udev->parent || 4140 4140 udev->speed < USB_SPEED_SUPER || 4141 4141 !udev->lpm_capable || 4142 - udev->state < USB_STATE_DEFAULT) 4142 + udev->state < USB_STATE_CONFIGURED) 4143 4143 return 0; 4144 4144 4145 4145 hcd = bus_to_hcd(udev->bus); ··· 4198 4198 if (!udev || !udev->parent || 4199 4199 udev->speed < USB_SPEED_SUPER || 4200 4200 !udev->lpm_capable || 4201 - udev->state < USB_STATE_DEFAULT) 4201 + udev->state < USB_STATE_CONFIGURED) 4202 4202 return; 4203 4203 4204 4204 udev->lpm_disable_count--;