devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] usb: usb251xb: support usage case without I2C control
@ 2025-08-20 16:17 Jisheng Zhang
  2025-08-20 16:17 ` [PATCH v3 1/3] dt-bindings: " Jisheng Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jisheng Zhang @ 2025-08-20 16:17 UTC (permalink / raw)
  To: Richard Leitner, Greg Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-usb, devicetree, linux-kernel

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 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, 102 insertions(+), 15 deletions(-)

-- 
2.50.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-25 12:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-20 16:17 [PATCH v3 0/3] usb: usb251xb: support usage case without I2C control Jisheng Zhang
2025-08-20 16:17 ` [PATCH v3 1/3] dt-bindings: " Jisheng Zhang
2025-08-22  8:17   ` Krzysztof Kozlowski
2025-08-20 16:17 ` [PATCH v3 2/3] usb: usb251xb: use modern PM macros Jisheng Zhang
2025-08-24 18:58   ` Richard Leitner
2025-08-20 16:17 ` [PATCH v3 3/3] usb: usb251xb: support usage case without I2C control Jisheng Zhang
2025-08-24 18:55   ` Richard Leitner
2025-08-25 11:51     ` Jisheng Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).