Linux USB
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] usb: typec: ucsi: New way to handle GET_CONNECTOR_STATUS
@ 2024-08-28 16:14 Heikki Krogerus
  2024-08-28 16:14 ` [RFC PATCH 1/3] usb: typec: ucsi: Helper for Get Connector Status command Heikki Krogerus
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Heikki Krogerus @ 2024-08-28 16:14 UTC (permalink / raw)
  To: Abhishek Pandit-Subedi
  Cc: Jameson Thies, Benson Leung, Bartosz Szpila,
	Pilla, Siva sai kumar, linux-usb

Hi,

I'm getting rid of only struct ucsi_connector_status, but my plan is
to remove all command specific data structures that don't align
naturally unless there are strong objections against it. Ideally we
could use bitfields - that way using those structures would not be a
problem - but I guess we still can't.

So UCSI_FIELD() is a hack, and may be replaced in the end, but it
works. I need to check if we can use bitmaps instead, but I did not
get that far yet.

The last patch is probable the one that you are really interested in.
Let me know what you think.

thanks,

Heikki Krogerus (3):
  usb: typec: ucsi: Helper for Get Connector Status command
  usb: typec: ucsi: Remove struct ucsi_connector_status
  usb: typec: ucsi: Helpers for new GET_CONNECTOR_STATUS fields

 drivers/usb/typec/ucsi/psy.c       |  28 +++----
 drivers/usb/typec/ucsi/trace.h     |  22 ++---
 drivers/usb/typec/ucsi/ucsi.c      | 110 ++++++++++++-------------
 drivers/usb/typec/ucsi/ucsi.h      | 128 +++++++++++++++++++++++------
 drivers/usb/typec/ucsi/ucsi_acpi.c |   7 +-
 5 files changed, 179 insertions(+), 116 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2024-08-30  8:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28 16:14 [RFC PATCH 0/3] usb: typec: ucsi: New way to handle GET_CONNECTOR_STATUS Heikki Krogerus
2024-08-28 16:14 ` [RFC PATCH 1/3] usb: typec: ucsi: Helper for Get Connector Status command Heikki Krogerus
2024-08-28 16:15 ` [RFC PATCH 2/3] usb: typec: ucsi: Remove struct ucsi_connector_status Heikki Krogerus
2024-08-29 21:37   ` Abhishek Pandit-Subedi
2024-08-28 16:15 ` [RFC PATCH 3/3] usb: typec: ucsi: Helpers for new GET_CONNECTOR_STATUS fields Heikki Krogerus
2024-08-28 23:54   ` Pilla, Siva sai kumar
2024-08-29  6:43     ` Heikki Krogerus
2024-08-29 21:49   ` Abhishek Pandit-Subedi
2024-08-30  8:37     ` Heikki Krogerus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox