Skip to content

usb: core: lpm: add sysfs node for usb3 lpm permit

Lu Baolu lkml stable 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 6 repliesSuperseded
  3. v13 patches 2 repliesSuperseded

Changes in v3 from the cover letter

Make the code more readable by adding some comments and refactoring the "if/else" code.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3usb: core: lpm: fix usb3_hardware_lpm sysfs nodeDocumentation/ABI/testing/sysfs-bus-usb Documentation/usb/power-management.txt drivers/usb/core/hub.c +2 more+75 -260 replies
2/3usb: core: lpm: add sysfs node for usb3 lpm permitDocumentation/ABI/testing/sysfs-bus-usb drivers/usb/core/hub.c drivers/usb/core/hub.h +1 more+116 -40 replies
3/3usb: core: lpm: remove usb3_lpm_enabled in usb_deviceinclude/linux/usb.h+0 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] usb: core: lpm: add sysfs node for usb3 lpm permit

Hi,

This patch series is about to add a sysfs attribute, through which users can disable or enable USB3 LPM (link power management) from a USB port. Once LPM is disabled from the USB port, LPM between the downstreaming device and the hub port will not be activated. This helps users to use any LPM-unfriendly USB devices on any released Linux kernels.

This patch series contains a fix and a cleanup as well.

Change log:
v2->v3:
Make the code more readable by adding some comments and refactoring the "if/else" code.

v1->v2:
Fix the "make htmldoc" warning reported by 0-day robot.

Thanks,
Baolu

Lu Baolu (3):
usb: core: lpm: fix usb3_hardware_lpm sysfs node
usb: core: lpm: add sysfs node for usb3 lpm permit
usb: core: lpm: remove usb3_lpm_enabled in usb_device

 Documentation/ABI/testing/sysfs-bus-usb | 27 +++++++---
 Documentation/usb/power-management.txt  | 11 ++--
 drivers/usb/core/hub.c                  | 52 +++++++++++++++----
 drivers/usb/core/hub.h                  |  5 +-
 drivers/usb/core/port.c                 | 89 ++++++++++++++++++++++++++++++++-
 drivers/usb/core/sysfs.c                | 31 ++++++++++--
 include/linux/usb.h                     |  6 ++-
 7 files changed, 190 insertions(+), 31 deletions(-)
Signature · 1 line
2.1.4