diff options
author | Denis Brockus <dbrockus@google.com> | 2020-06-23 20:07:46 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-24 19:49:47 +0000 |
commit | 7c3980117e84cf3557a909806bddb376dfb74817 (patch) | |
tree | c58569df148219f9d4edf7c0a75ea6d472c43ed6 /common/usb_pd_protocol.c | |
parent | 7a100e971ad453dbbdfc30736d0e276b16067abc (diff) | |
download | chrome-ec-7c3980117e84cf3557a909806bddb376dfb74817.tar.gz |
tcpm: add attached_wait decision to common after auto-toggle
Need to verify auto toggle connections and non auto
toggle connections still work. I will verify on
trembyle
BUG=b:159736927
BRANCH=none
TEST=check basic functionality
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I378ddf520026591d8129986078875ce46f1e0ad8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2264472
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r-- | common/usb_pd_protocol.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 99d1e33ae1..151e4b50aa 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -4668,14 +4668,20 @@ void pd_task(void *u) break; #endif - /* Check for connection */ + /* + * Check for connection + * + * Send FALSE for supports_auto_toggle to not change + * the current return value of UNATTACHED instead of + * the auto-toggle ATTACHED_WAIT response for TCPMv1. + */ tcpm_get_cc(port, &cc1, &cc2); next_state = drp_auto_toggle_next_state( &pd[port].drp_sink_time, pd[port].power_role, drp_state[port], - cc1, cc2); + cc1, cc2, false); #ifdef CONFIG_USB_PD_TCPC_LOW_POWER /* |