usb: core: lpm: fix usb3_hardware_lpm sysfs node
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 14 Nov 2015 08:26:32 +0000 (16:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Dec 2015 22:58:18 +0000 (14:58 -0800)
commitbf5ce5bf3cc7136fd7fe5e8999a580bc93a9c8f6
treeceba9f149feb24ad8cb93bb33a2655dd59e32df8
parentc56a2b2bc661fe089fde9beffeadcb0ecb5e934b
usb: core: lpm: fix usb3_hardware_lpm sysfs node

Commit 655fe4effe0f ("usbcore: add sysfs support to xHCI usb3
hardware LPM") introduced usb3_hardware_lpm sysfs node. This
doesn't show the correct status of USB3 U1 and U2 LPM status.

This patch fixes this by replacing usb3_hardware_lpm with two
nodes, usb3_hardware_lpm_u1 (for U1) and usb3_hardware_lpm_u2
(for U2), and recording the U1/U2 LPM status in right places.

This patch should be back-ported to kernels as old as 4.3,
that contains Commit 655fe4effe0f ("usbcore: add sysfs support
to xHCI usb3 hardware LPM").

Cc: stable@vger.kernel.org
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-usb
Documentation/usb/power-management.txt
drivers/usb/core/hub.c
drivers/usb/core/sysfs.c
include/linux/usb.h
This page took 0.027993 seconds and 5 git commands to generate.