]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: tcpm: PD3.0 sinks can send Discover Identity even in device mode
authorBadhri Jagan Sridharan <badhri@google.com>
Thu, 18 Mar 2021 06:56:04 +0000 (23:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Mar 2021 08:35:18 +0000 (09:35 +0100)
commit726d7f08317ba2b3ad861a1cb94e0d7699407447
tree6457b83610657e6b86f8087bb362ed1d0ca85a1e
parent3c7c7d014daec99968d61342eb067fe54e75810a
usb: typec: tcpm: PD3.0 sinks can send Discover Identity even in device mode

>From 6.4.4.2 Structured VDM:
• Either Port May be an Initiator of Structured VDMs except for the Enter
Mode and Exit Mode Commands which Shall only be initiated by the DFP."

The above implies that when PD3.0 link is established PD3.0 sinks
can send out discover identity command/AMS once PD negotiation is done.
This allows discovering identity for PD3.0 UFP ports as well.

Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20210318065604.3757307-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c