linux/drivers/usb/typec
Badhri Jagan Sridharan f321a02cae usb: typec: tcpm: Implement enabling Auto Discharge disconnect support
TCPCI spec allows TCPC hardware to autonomously discharge the vbus
capacitance upon disconnect. The expectation is that the TCPM enables
AutoDischargeDisconnect while entering SNK/SRC_ATTACHED states. Hardware
then automously discharges vbus when the vbus falls below a certain
threshold i.e. VBUS_SINK_DISCONNECT_THRESHOLD.

Apart from enabling the vbus discharge circuit, AutoDischargeDisconnect
is also used a flag to move TCPCI based TCPC implementations into
Attached.Snk/Attached.Src state as mentioned in
Figure 4-15. TCPC State Diagram before a Connection of the
USB Type-C Port Controller Interface Specification.
In such TCPC implementations, setting AutoDischargeDisconnect would
prevent TCPC into entering "Connection_Invalid" state as well.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20201029063138.1429760-8-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-18 12:57:49 +01:00
..
altmodes usb: typec: displayport: Reduce noise from the driver 2020-10-02 11:30:10 +02:00
mux usb: typec: intel_pmc_mux: Configure Thunderbolt cable generation bits 2020-11-18 12:53:45 +01:00
tcpm usb: typec: tcpm: Implement enabling Auto Discharge disconnect support 2020-11-18 12:57:49 +01:00
ucsi Merge 5.10-rc4 into here. 2020-11-16 09:16:56 +01:00
bus.c usb: typec: altmode: Fix typec_altmode_get_partner sometimes returning an invalid pointer 2020-04-22 19:23:19 +02:00
bus.h usb: typec: altmode: Remove the notification chain 2020-02-12 10:51:21 -08:00
class.c usb: typec: Add number of altmodes partner attr 2020-11-18 12:55:46 +01:00
hd3ss3220.c usb: typec: hd3ss3220: Use OF graph API to get the connector fwnode 2020-10-02 15:28:18 +02:00
Kconfig usb: typec: Add QCOM PMIC typec detection driver 2020-10-09 15:14:43 +02:00
Makefile usb: typec: Add QCOM PMIC typec detection driver 2020-10-09 15:14:43 +02:00
mux.c usb: fix kernel-doc markups 2020-10-28 13:18:56 +01:00
qcom-pmic-typec.c usb: typec: Add QCOM PMIC typec detection driver 2020-10-09 15:14:43 +02:00
stusb160x.c usb: typec: stusb160x: fix signedness comparison issue with enum variables 2020-10-29 08:26:08 +01:00
tps6598x.c usb: typec: Replace HTTP links with HTTPS ones 2020-07-15 16:33:50 +02:00