usb: typec: ucsi: Register SOP' alternate modes with cable plug
authorJameson Thies <jthies@google.com>
Tue, 5 Mar 2024 02:58:04 +0000 (02:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 13:11:09 +0000 (13:11 +0000)
commit3dd85520736349dea2b4f3f78a60cf367af83f20
tree6ab027ba09ace6ffaaf00b0914552ce46d399dea
parentf896d5e8726cd755f4868aaf8332daabaf480d7a
usb: typec: ucsi: Register SOP' alternate modes with cable plug

Register SOP' alternate modes with a Type-C Connector Class cable plug.
Alternate modes are queried from the PPM using the GET_ALTERNATE_MODES
command with recipient set to SOP'.

Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Jameson Thies <jthies@google.com>
Link: https://lore.kernel.org/r/20240305025804.1290919-5-jthies@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c
drivers/usb/typec/ucsi/ucsi.h