diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-10-20 15:37:11 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-22 17:40:31 -0700 |
commit | 7e81bebb48274055ace613796b9d1ede45c8c9d7 (patch) | |
tree | 2a02ef3b96049225f30369e82b2f2b9f007eda20 /driver/ioexpander_pca9534.h | |
parent | 0f4e6d217d930c6f3b849f232b1260aed099f260 (diff) | |
download | chrome-ec-7e81bebb48274055ace613796b9d1ede45c8c9d7.tar.gz |
tcpc: re-initialize tcpc if it reboots while tcpm is running
On TCPC startup, set an alert to notify TCPM that we have been
reset. When TCPM gets this notification, it should re-send
initial TCPC parameters. If we were in a stable contract as
a sink, make sure we don't reset connection. If not, then
reset PD protocol state machine to the default state.
This fixes a bug where if the TCPC reboots while the TCPM is
still running, then the TCPC would not get re-initialized and
therefore no PD communication would not work. This also fixes
it such that if we are in a stable contract as a sink and the
TCPC reboots, then we don't lose power.
BUG=chrome-os-partner:46676
BRANCH=none
TEST=tested on glados. reboot PD MCU with and without a charger
plugged in and verify that PD communication works after the
reboot. verify that with a charger, we don't lose power.
also tested with a hoho plugged in during reboot.
Change-Id: I84fec4577b0daf5891bd8461d3f3d925014a5ecf
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/307187
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'driver/ioexpander_pca9534.h')
0 files changed, 0 insertions, 0 deletions