mbox series

[RFC,v2,0/2] usb: typec: ucsi: New way to handle GET_CONNECTOR_STATUS

Message ID 20240903145342.3449969-1-heikki.krogerus@linux.intel.com
Headers show
Series usb: typec: ucsi: New way to handle GET_CONNECTOR_STATUS | expand

Message

Heikki Krogerus Sept. 3, 2024, 2:53 p.m. UTC
Hi,

This is a bit better version of the idea. I'm now using the bitmap
API, but there are actually not that many other changes. I converted
GET_CONNECTOR_CAP and GET_CONNECTOR_STATUS.

The original version:
https://lore.kernel.org/linux-usb/20240828161502.2774996-1-heikki.krogerus@linux.intel.com/

thanks,

Heikki Krogerus (2):
  usb: typec: ucsi: Helper for Get Connector Status command
  usb: typec: ucsi: Convert connector specific commands to bitmaps

 drivers/usb/typec/ucsi/psy.c       |  28 ++---
 drivers/usb/typec/ucsi/trace.h     |  28 ++---
 drivers/usb/typec/ucsi/ucsi.c      | 135 ++++++++++----------
 drivers/usb/typec/ucsi/ucsi.h      | 195 ++++++++++++++++-------------
 drivers/usb/typec/ucsi/ucsi_acpi.c |   7 +-
 5 files changed, 206 insertions(+), 187 deletions(-)