usb: typec: tcpm: add state machine support for SRC_VDM_IDENTITY_REQUEST
authorRD Babiera <rdbabiera@google.com>
Mon, 8 Jan 2024 19:16:22 +0000 (19:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 01:38:25 +0000 (17:38 -0800)
commitaf8b627046bcb024e34923a8fa3903dcfc297dee
treeb75db6f6eb20a9640aa61ee204d15f26ced64b95
parentfb7ff25ae43332cb64c9e7bbbe36a6cc308d8de1
usb: typec: tcpm: add state machine support for SRC_VDM_IDENTITY_REQUEST

Add SRC_VDM_IDENTITY_REQUEST state which first enters after SRC_STARTUP.
The state sends Discover Identity on SOP' and transitions to
SRC_SEND_CAPABILITIES. SRC_SEND_CAPABILITIES will transition back into
SRC_VDM_IDENTITY_REQUEST instead of retrying immediately.

Signed-off-by: RD Babiera <rdbabiera@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240108191620.987785-23-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c