diff options
author | Denis Brockus <dbrockus@google.com> | 2020-05-29 13:17:04 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-03 23:03:50 +0000 |
commit | 88103a34e5b368234a463bc5f745cfa4978034b4 (patch) | |
tree | b74b462c84abfc14c77bc8107cbf457b9169895d /test/fake_usbc.c | |
parent | e0d7e156976cde28bc8bca2b1211c61759ca8995 (diff) | |
download | chrome-ec-88103a34e5b368234a463bc5f745cfa4978034b4.tar.gz |
TCPMv2: Aborted PR Swap should not re-enable AutoDischarge
On a recovery path exit a TCPCI I2C FAULT occurs when we
set the CC lines to open/open if AutoDischargeDisconnect
is currently enabled.
The TCPCI I2C FAULT is not a status of the I2C interface
but rather a status of the last TCPCI I2C write performed
with regards to the current state/settings of the TCPCI.
This is usually caused when AutoDischargeDisconnect is
enabled/disabled when it should not be. This change will
make sure this path will not re-enable and that entering
the recovery path will make sure AutoDischarge is disabled.
We will wait to re-enable until the TC state machine
is restarted.
BUG=b:157755939
BRANCH=none
TEST=ThinkPad Dock G2 attach should not cause FAULT-0x01
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: If70ccd90b045949e54c131512d1fb294c61dd1dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2223722
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test/fake_usbc.c')
-rw-r--r-- | test/fake_usbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c index 13a1945a0a..773c871605 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -105,7 +105,7 @@ void tc_partner_usb_comm(int port, int en) void tc_pd_connection(int port, int en) {} -void tc_pr_swap_complete(int port) +void tc_pr_swap_complete(int port, bool success) {} void tc_prs_snk_src_assert_rp(int port) |