Linux USB
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Restrict alternate modes based on cable capabilities
@ 2026-06-11 12:21 Andrei Kuchynski
  2026-06-11 12:21 ` [PATCH v1 1/3] usb: typec: Add helper to check cable altmode support Andrei Kuchynski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrei Kuchynski @ 2026-06-11 12:21 UTC (permalink / raw)
  To: Heikki Krogerus
  Cc: Greg Kroah-Hartman, linux-usb, linux-kernel, Andrei Kuchynski

Currently, alternate mode drivers (like DisplayPort and Thunderbolt)
automatically assign operational callbacks (`typec_altmode_set_ops`)
during probing, even if the underlying cable capabilities cannot support
them. This can lead to incorrectly advertised state configurations or
initialization failures later on.

The first patch introduces the core helper function, and the subsequent
patches update the DisplayPort and Thunderbolt altmode drivers to
utilize this check during their respective probe phases.

Andrei Kuchynski (3):
  usb: typec: Add helper to check cable altmode support
  usb: typec: thunderbolt: Check cable altmode support
  usb: typec: displayport: Check cable altmode support

 drivers/usb/typec/altmodes/displayport.c |  5 +++-
 drivers/usb/typec/altmodes/thunderbolt.c |  4 +++
 drivers/usb/typec/class.c                | 35 ++++++++++++++++++++++++
 include/linux/usb/typec.h                |  1 +
 4 files changed, 44 insertions(+), 1 deletion(-)

-- 
2.54.0.1099.g489fc7bff1-goog


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

end of thread, other threads:[~2026-06-11 18:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11 12:21 [PATCH v1 0/3] Restrict alternate modes based on cable capabilities Andrei Kuchynski
2026-06-11 12:21 ` [PATCH v1 1/3] usb: typec: Add helper to check cable altmode support Andrei Kuchynski
2026-06-11 18:47   ` Benson Leung
2026-06-11 12:21 ` [PATCH v1 2/3] usb: typec: thunderbolt: Check " Andrei Kuchynski
2026-06-11 12:21 ` [PATCH v1 3/3] usb: typec: displayport: " Andrei Kuchynski

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