Skip to content

RFC Add usb2 link powermanagement BESL support

Mathias Nyman lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest4 patches 3 repliesIn review
  2. v2 RFC4 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Add Documentation/ABI/testing/sysfs-bus-usb entries for new sysfs attributes
- store l1_timeout value in microseconds instead of xHCI specific values

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4usb: xhci: check usb2 port capabilities before adding hw link PM supportdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c drivers/usb/host/xhci.h+58 -50 replies
2/4usb: xhci: define port register names and use them instead of magic numbersdrivers/usb/host/xhci-hub.c drivers/usb/host/xhci.c drivers/usb/host/xhci.h+14 -110 replies
3/4usb: xhci: add USB2 Link power management BESL supportdrivers/usb/host/xhci-ext-caps.h drivers/usb/host/xhci.c drivers/usb/host/xhci.h +1 more+164 -640 replies
4/4usb: add usb2 Link PM variables to sysfs and usb_deviceDocumentation/ABI/testing/sysfs-bus-usb drivers/usb/core/sysfs.c drivers/usb/host/xhci.c +1 more+103 -20 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH v3 0/4] Add usb2 link powermanagement BESL support

This series adds usb2 best effort service latency (BESL) link PM support to xHCI. BESL is an updated alternative to host initated resume delay (HIRD) method of describing idle link timeouts.

Additionally this series fixes port capability checking and replaces magic numbers with port register names.

Changes since v1:
-Use kstrto* and unsigned values in sysfs functions as Alan Stern suggested

Changes since v2:
- Add Documentation/ABI/testing/sysfs-bus-usb entries for new sysfs attributes
- store l1_timeout value in microseconds instead of xHCI specific values

Mathias Nyman (4):
usb: xhci: check usb2 port capabilities before adding hw link PM
support
usb: xhci: define port register names and use them instead of magic
numbers
usb: xhci: add USB2 Link power management BESL support
usb: add usb2 Link PM variables to sysfs and usb_device

 Documentation/ABI/testing/sysfs-bus-usb |   27 ++++
 drivers/usb/core/sysfs.c                |   54 +++++++
 drivers/usb/host/xhci-ext-caps.h        |    1 +
 drivers/usb/host/xhci-hub.c             |   16 +--
 drivers/usb/host/xhci-mem.c             |   33 ++++-
 drivers/usb/host/xhci.c                 |  237 ++++++++++++++++++++++---------
 drivers/usb/host/xhci.h                 |   29 ++++
 include/linux/usb.h                     |   20 +++
 8 files changed, 337 insertions(+), 80 deletions(-)
Signature · 1 line
1.7.4.1