diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2015-11-14 03:26:32 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-01 17:58:18 -0500 |
commit | bf5ce5bf3cc7136fd7fe5e8999a580bc93a9c8f6 (patch) | |
tree | ceba9f149feb24ad8cb93bb33a2655dd59e32df8 /Documentation/usb | |
parent | c56a2b2bc661fe089fde9beffeadcb0ecb5e934b (diff) |
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>
Diffstat (limited to 'Documentation/usb')
-rw-r--r-- | Documentation/usb/power-management.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Documentation/usb/power-management.txt b/Documentation/usb/power-management.txt index 4a15c90bc11d..0a94ffe17ab6 100644 --- a/Documentation/usb/power-management.txt +++ b/Documentation/usb/power-management.txt | |||
@@ -537,17 +537,18 @@ relevant attribute files are usb2_hardware_lpm and usb3_hardware_lpm. | |||
537 | can write y/Y/1 or n/N/0 to the file to enable/disable | 537 | can write y/Y/1 or n/N/0 to the file to enable/disable |
538 | USB2 hardware LPM manually. This is for test purpose mainly. | 538 | USB2 hardware LPM manually. This is for test purpose mainly. |
539 | 539 | ||
540 | power/usb3_hardware_lpm | 540 | power/usb3_hardware_lpm_u1 |
541 | power/usb3_hardware_lpm_u2 | ||
541 | 542 | ||
542 | When a USB 3.0 lpm-capable device is plugged in to a | 543 | When a USB 3.0 lpm-capable device is plugged in to a |
543 | xHCI host which supports link PM, it will check if U1 | 544 | xHCI host which supports link PM, it will check if U1 |
544 | and U2 exit latencies have been set in the BOS | 545 | and U2 exit latencies have been set in the BOS |
545 | descriptor; if the check is is passed and the host | 546 | descriptor; if the check is is passed and the host |
546 | supports USB3 hardware LPM, USB3 hardware LPM will be | 547 | supports USB3 hardware LPM, USB3 hardware LPM will be |
547 | enabled for the device and this file will be created. | 548 | enabled for the device and these files will be created. |
548 | The file holds a string value (enable or disable) | 549 | The files hold a string value (enable or disable) |
549 | indicating whether or not USB3 hardware LPM is | 550 | indicating whether or not USB3 hardware LPM U1 or U2 |
550 | enabled for the device. | 551 | is enabled for the device. |
551 | 552 | ||
552 | USB Port Power Control | 553 | USB Port Power Control |
553 | ---------------------- | 554 | ---------------------- |