usb: typec: tcpci: Enable bleed discharge when auto discharge is enabled
authorBadhri Jagan Sridharan <badhri@google.com>
Fri, 11 Dec 2020 07:11:45 +0000 (23:11 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Dec 2020 10:13:55 +0000 (11:13 +0100)
commit3b6c3d04808965167ff19d028789bc92a4b12c8c
treea700a98410328b54acd902241f5f3acc7e5a6c63
parentecf4d4310a16c32fee081924a1aebe9f4c7c0403
usb: typec: tcpci: Enable bleed discharge when auto discharge is enabled

Auto discharge circuits kick in only when vbus decays and reaches
VBUS_SINK_DISCONNECT_THRESHOLD threshold. Enable bleed discharge to
discharge vbus to VBUS_SINK_DISCONNECT_THRESHOLD upon disconnect.

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