diff options
author | Diana Z <dzigterman@chromium.org> | 2022-06-02 09:28:42 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-02 22:48:25 +0000 |
commit | 1934bd11883fe7acc87b8920ba8ed00d5599a046 (patch) | |
tree | 48c12531a2ab81d38f38b9f648bf2ee0478863c4 | |
parent | f8f2e9a50c70089d675df1bfb1eefa70c2625b6f (diff) | |
download | chrome-ec-1934bd11883fe7acc87b8920ba8ed00d5599a046.tar.gz |
Ectool: Correct TYPEC_CONTROL switch
Add a "break" to the case for the enter mode command. Otherwise, it
would fall through to the UFP policy state.
BRANCH=None
BUG=None
TEST=on nipperkin, verify enter mode request is queued up (though not
acted on, since AP driven mode entry isn't enabled)
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I2e93661110350d2df4566e4565c1d0dab5590447
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3687078
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r-- | util/ectool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c index 640ff8e539..9c62e36093 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -10091,6 +10091,7 @@ int cmd_typec_control(int argc, char *argv[]) return -1; } p.mode_to_enter = conversion_result; + break; case TYPEC_CONTROL_COMMAND_TBT_UFP_REPLY: if (argc < 4) { fprintf(stderr, "Missing reply\n"); |