diff options
author | Wai-Hong Tam <waihong@google.com> | 2019-07-29 11:14:56 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-26 19:31:27 +0000 |
commit | 66bb7ba71db2a8c1233bd51d06e0ece93d89ce91 (patch) | |
tree | 7a17f62b801a9e4e83944918c6e8cd23edaf3c4f /util | |
parent | 9251ad6a45e783c38a7315b7a641a93dc1434ae5 (diff) | |
download | chrome-ec-66bb7ba71db2a8c1233bd51d06e0ece93d89ce91.tar.gz |
servo_v4: Be a sink without PD comm when power charge-through detached
This CL changes the behavior of no charge-through happens but a user
explicitly sets servo v4 as a source.
It is changed from "sink with PD comm" to "sink without PD comm".
BRANCH=servo
BUG=b:138585164, b:135035317
TEST=Manual as the following console interaction:
(Plug the power cable back to servo v4)
> cc src
> pd 1 state
Port C1 CC1, Ena - Role: SRC-UFP State: SRC_READY, Flags: 0x415e
> cc snk
> pd 1 state
Port C1 CC1, Dis - Role: SNK-UFP State: SNK_DISCOVERY, Flags: 0x0608
> cc pdsnk
> pd 1 state
Port C1 CC1, Ena - Role: SNK-UFP State: SNK_READY, Flags: 0x414e
> cc src
> pd 1 state
Port C1 CC1, Ena - Role: SRC-UFP State: SRC_READY, Flags: 0x415e
(Unplug the power cable from servo v4)
> pd 1 state
Port C1 CC1, Dis - Role: SNK-UFP State: SNK_DISCOVERY, Flags: 0x0608
(Plug the power cable back to servo v4)
> pd 1 state
Port C1 CC1, Ena - Role: SRC-UFP State: SRC_READY, Flags: 0x415e
> cc pdsnk
> pd 1 state
Port C1 CC1, Ena - Role: SNK-UFP State: SNK_READY, Flags: 0x414e
(Unplug the power cable from servo v4)
> pd 1 state
Port C1 CC1, Ena - Role: SNK-UFP State: SNK_READY, Flags: 0x414e
(Plug the power cable back to servo v4)
> pd 1 state
Port C1 CC1, Ena - Role: SNK-UFP State: SNK_READY, Flags: 0x414e
> cc snk
> pd 1 state
Port C1 CC1, Dis - Role: SNK-UFP State: SNK_DISCOVERY, Flags: 0x0608
(Unplug the power cable from servo v4)
> pd 1 state
Port C1 CC1, Dis - Role: SNK-UFP State: SNK_DISCOVERY, Flags: 0x0608
(Plug the power cable back to servo v4)
> pd 1 state
Port C1 CC1, Dis - Role: SNK-UFP State: SNK_DISCOVERY, Flags: 0x0608
Change-Id: Ia4b6f858a4b0e22d81efbff02df4d02f3dc04bc9
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1724933
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions