usb: typec: tcpci: Implement callbacks for FRS
authorBadhri Jagan Sridharan <badhri@google.com>
Thu, 8 Oct 2020 06:15:48 +0000 (23:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2020 07:43:55 +0000 (09:43 +0200)
commit11121c2406c8cc0ee493644233fbdc7fe0598981
tree0c3b3d6b3d0497d96b023a54fbfbe8b8fbf76dfe
parent8dc4bd073663fa8aba2fae08b1c23ab41a2e97a2
usb: typec: tcpci: Implement callbacks for FRS

Implement tcpc.enable_frs to enable TCPC to receive
Fast role swap signal.

Additionally set the sink disconnect threshold to 4v
to prevent disconnect during Fast Role swap.

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