All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] usb: typec: ucsi: Role swapping fixes
@ 2022-04-05 13:48 Heikki Krogerus
  2022-04-05 13:48 ` [PATCH v1 1/2] usb: typec: ucsi: Fix reuse of completion structure Heikki Krogerus
  2022-04-05 13:48 ` [PATCH v1 2/2] usb: typec: ucsi: Fix role swapping Heikki Krogerus
  0 siblings, 2 replies; 3+ messages in thread
From: Heikki Krogerus @ 2022-04-05 13:48 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Jia-Ju Bai, Jack Pham, linux-usb

Hi,

It appears these role swapping routines have been broken for a while.
The role swap UCSI commands always actually did work, and the roles were
most likely always swapped, but these operations just always appeared to
fail because of these bugs.

I'm guessing that has kept the problem hidden. Nobody cared about the
return values from these operations. It was enough that the roles were
swapped in the end.

thanks,

Heikki Krogerus (2):
  usb: typec: ucsi: Fix reuse of completion structure
  usb: typec: ucsi: Fix role swapping

 drivers/usb/typec/ucsi/ucsi.c | 24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-04-05 23:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 13:48 [PATCH v1 0/2] usb: typec: ucsi: Role swapping fixes Heikki Krogerus
2022-04-05 13:48 ` [PATCH v1 1/2] usb: typec: ucsi: Fix reuse of completion structure Heikki Krogerus
2022-04-05 13:48 ` [PATCH v1 2/2] usb: typec: ucsi: Fix role swapping Heikki Krogerus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.