summaryrefslogtreecommitdiff
path: root/include/linux/usb/pd_ado.h
diff options
context:
space:
mode:
authorRD Babiera <rdbabiera@google.com>2024-01-08 22:16:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-28 04:38:25 +0300
commitfb7ff25ae43332cb64c9e7bbbe36a6cc308d8de1 (patch)
treeb5032c11c0f5b960d457ece05faae6483a23c97e /include/linux/usb/pd_ado.h
parent030509ac473da439e3d5438b1cd3c5b899844046 (diff)
downloadlinux-fb7ff25ae43332cb64c9e7bbbe36a6cc308d8de1.tar.xz
usb: typec: tcpm: add discover identity support for SOP'
Add data message handling and Discover Identity SVDM over SOP' This patch contains the following changes: 1. pd_vdo Add VDO indices for active and passive cables, documentation to reflect expected number of objects depending on PD Revision, and macro to indicate port parter is data host capable. 2. tcpm Add typec_cable and typec_plug to tcpm_port to maintain cable and plug information. tcpm_port also adds send_discover_prime to indicate that Discover Identity should be sent out of the ready state. tcpm_queue_vdm and tcpm_send_vdm now take the SOP* type when transmitting messages. tcpm_handle_vdm_request and tcpm_pd_svdm also use the SOP* type. tcpm_pd_svdm handles Discover Identity messages for SOP and SOP'. In the SOP case, the port uses tcpm_attempt_vconn_swap_discovery to determine if a Vconn swap is needed for cable communication. Otherwise, the port will send Discover Identity on SOP' if it can, or default to Discover SVIDs. svdm_consume_identity_sop_prime consumes the result of Discover Identity on SOP'. It fills out cable identity and description, and it registers the cable. The SOP' plug is registered as well. The VDM state machine is adjusted to construct messages based on the SOP* type. If a transmission error occurs after the max number of retries for Discover Identity over SOP', then the port will send Discover SVIDs over SOP. 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-22-rdbabiera@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb/pd_ado.h')
0 files changed, 0 insertions, 0 deletions