diff options
author | Denis Brockus <dbrockus@chromium.org> | 2019-12-10 10:24:12 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-12 03:53:55 +0000 |
commit | 896271dad5edbfaad2b0ff10a6fb1dcfb1143089 (patch) | |
tree | 01ae1278294b969fc70d0b6f15f963b2c2bc7e19 /include/usb_pd_tcpm.h | |
parent | 40b6c5de590e6290e6b516c380f6b59efbff4fa3 (diff) | |
download | chrome-ec-896271dad5edbfaad2b0ff10a6fb1dcfb1143089.tar.gz |
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 <dbrockus@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1960514
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r-- | include/usb_pd_tcpm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index cfd7692852..70ef7a17cb 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -267,13 +267,13 @@ struct tcpm_drv { void (*tcpc_discharge_vbus)(int port, int enable); /** - * Connection State Change + * Auto Discharge Disconnect * * @param port Type-C port number - * @param connected Connection state + * @param enable Auto Discharge enable or disable */ - void (*tcpc_connect_state_change)(int port, - int connected); + void (*tcpc_enable_auto_discharge_disconnect)(int port, + int enable); #ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE /** |