Skip to content

usb: usb251xb: support usage case without I2C control

Jisheng Zhang linux-devicetree linux-usb lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 4 repliesSuperseded
  3. v2 posting 2/23 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/20 of 2 patches0 repliesSuperseded
v12 patches1 replySuperseded

Changes in v4 from the cover letter

- collect Reviewed-by tags
- update commit msg to remove redundant content
- keep memset of i2c_wb[]

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: usb: usb251xb: support usage case without I2C controlDocumentation/devicetree/bindings/usb/usb251xb.yaml+8 -10 replies
2/3usb: usb251xb: use modern PM macrosdrivers/usb/misc/usb251xb.c+4 -40 replies
3/3usb: usb251xb: support usage case without I2C controldrivers/usb/misc/usb251xb.c+95 -130 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiRichard Leitner
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] usb: usb251xb: support usage case without I2C control

Currently, the usb251xb assumes i2c control. But from HW point of view, the hub supports usage case without any i2c, we only want the gpio controls.

Refactor the code so that register writes for configuration are only performed if the device has a i2c_client provided and also register as a platform driver. This allows the driver to be used to manage GPIO based control of the device.

Since v3:
- collect Reviewed-by tags
- update commit msg to remove redundant content
- keep memset of i2c_wb[]

Since v2:
- add usage example w/o i2c control in dt-binding
- update commit msg
- remove of_match_ptr

Since v1:
- make the modern pm macros usage a separate patch
- use pm_sleep_ptr instead of pm_ptr for usb251xb_plat_pm_ops, because this ops is for PM_SLEEP only.

Jisheng Zhang (3):
dt-bindings: usb: usb251xb: support usage case without I2C control
usb: usb251xb: use modern PM macros
usb: usb251xb: support usage case without I2C control

 .../devicetree/bindings/usb/usb251xb.yaml     |   9 +-
 drivers/usb/misc/usb251xb.c                   | 108 +++++++++++++++---
 2 files changed, 103 insertions(+), 14 deletions(-)
Signature · 1 line
2.50.0