diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2020-01-29 12:48:30 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-30 22:29:29 +0000 |
commit | 8acad8f93f1cd221d6f683c908a0c2f4115b2133 (patch) | |
tree | 5a9424cc0586884d3fd6f8987c87b4ae20041eb8 /common/fan.c | |
parent | 04df9fbbf4953f0f3afbfca8f8cb656bb41146b4 (diff) | |
download | chrome-ec-8acad8f93f1cd221d6f683c908a0c2f4115b2133.tar.gz |
USB PD: set last rx'd msg ID as invalid before executing soft reset
If the last message ID received was a 0, then executing "pd N soft"
on the EC shell would incorrectly mark the next message received as
a repeat message. This change resets the last received message ID
to the invalid value before executing the soft reset.
BUG=b:146811519
BRANCH=firmware-hatch-12672.B
TEST=Executing
"pd 0 swap power
pd 0 soft"
while connected as a SNK to a servo V4 no longer results in a loop
because the message was not marked as a repeat any more.
Change-Id: I754d1d3ed9f7a4a5163b0f3cd4bb844f47e0ccc7
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2028359
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'common/fan.c')
0 files changed, 0 insertions, 0 deletions