diff options
author | Denis Brockus <dbrockus@google.com> | 2020-04-27 09:06:25 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-30 05:49:04 +0000 |
commit | 815121bc496d5c90265fd8b77089e5b2944ef4b9 (patch) | |
tree | 54cb1cb26945f70e2d00e1e3220668d15fcbe8c3 /test | |
parent | 261b22c41f347a99431e3ec939ff71b52336f281 (diff) | |
download | chrome-ec-815121bc496d5c90265fd8b77089e5b2944ef4b9.tar.gz |
tcpmv2: SNK HardReset cleanup
tc_hard_reset tells tcpc we are starting a hard
reset. It now disables AutoDischargeDisconnect
and sets the flag to put TC in reset. When
this happens, TCPC should not go to an
unattached state.
tc_hard_reset_complete was added to tell the
TCPC we are done with the hard reset and going
to an unattached state is allowed again. It
enables AutoDischargeDisconnect and clears
the flag that blocked the TCPC from going to
an unattached state.
hard reset changes the TCPCI mask register
to be their default values. Alert will now
detect this and will make sure the TCPC is
initialized and back to what we expect it
to be.
BUG=b:154073581,b:154622375,b:154937258
BUG=b:154778807,b:155132904
BRANCH=none
TEST=verify charger is still detected after hardreset
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I3e1dd04b04653b8fca5dccc9373533d5a5ff9586
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2172063
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/fake_usbc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c index 73906bd6e9..fb572c59e3 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -87,6 +87,9 @@ int tc_is_vconn_src(int port) void tc_hard_reset(int port) {} +void tc_hard_reset_complete(int port) +{} + void tc_partner_dr_data(int port, int en) {} |