usb: typec: tcpm: Add Callback to Usb Communication capable partner
authorBadhri Jagan Sridharan <badhri@google.com>
Tue, 2 Feb 2021 00:30:59 +0000 (16:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Feb 2021 16:38:05 +0000 (17:38 +0100)
commita69bdb283f79949b67632878ef1822badae9299f
treec0cf8560d17333143295bb7dd2d5cac6d5b557dc
parent2b8ff93fd7443d7bd4c085ac0249d87238c755ba
usb: typec: tcpm: Add Callback to Usb Communication capable partner

The USB Communications Capable bit indicates if port
partner is capable of communication over the USB data lines
(e.g. D+/- or SS Tx/Rx). Notify the status of the bit to low
level drivers to perform chip specific operation.
For instance, low level driver enables USB switches on D+/D-
lines to set up data path when the bit is set.

Refactored from patch initially authored by
Kyle Tso <kyletso@google.com>

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20210202003101.221145-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c
include/linux/usb/tcpm.h