From 896271dad5edbfaad2b0ff10a6fb1dcfb1143089 Mon Sep 17 00:00:00 2001 From: Denis Brockus Date: Tue, 10 Dec 2019 10:24:12 -0700 Subject: tcpci: change connect to auto discharge disconnect It was originally thought the connect/disconnect would be a good generic way to set/clear auto_discharge_disconnect but it was not working reliably. Although the points that we are calling to perform this enable/disable are close to the connect/disconnect, there is more fine tuning required to make this work. BUG=b:144126745,chromium:951683 BRANCH=none TEST=attach/disconnect charger with and without AP running TEST=attach/disconnect device with AP running Change-Id: Ib1418771aec6d0a52895972e4db6881b072c0c3d Signed-off-by: Denis Brockus Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1960514 Reviewed-by: Edward Hill --- driver/tcpm/stub.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'driver/tcpm/stub.c') diff --git a/driver/tcpm/stub.c b/driver/tcpm/stub.c index 0ebe8af999..3626f148fc 100644 --- a/driver/tcpm/stub.c +++ b/driver/tcpm/stub.c @@ -89,6 +89,10 @@ int tcpm_set_rx_enable(int port, int enable) return tcpc_set_rx_enable(port, enable); } +void tcpm_enable_auto_discharge_disconnect(int port, int enable) +{ +} + int tcpm_has_pending_message(int port) { return !rx_buf_is_empty(port); -- cgit v1.2.1