diff options
author | Karthikeyan Ramasubramanian <kramasub@chromium.org> | 2019-05-09 17:43:02 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-30 11:47:58 -0700 |
commit | c23cced7340ba977e9aacb9af02b86ac5df7d347 (patch) | |
tree | 46a9b72f7027fef8d9e61706cc984a7cfe31ee24 /include/i2c.h | |
parent | ea05ecfd8a2c278b1da5e2c111e6f71485c84ad9 (diff) | |
download | chrome-ec-c23cced7340ba977e9aacb9af02b86ac5df7d347.tar.gz |
common/i2c_master: Add a subcommand to protect all TCPC ports
Currently the I2C tunnels of all TCPC ports are protected implicitly
when the system jump is disabled. Depthcharge issues that command after
the EC jumps to RW and before the TCPC firmware update is applied. This
leads to failure while updating the TCPC firmware and hence a reboot loop.
Fix this behavior by adding a sub-command to protect all the I2C tunnels
so that depthcharge can issue that command after both EC SW Sync and
TCPC Firmware update are done.
BUG=b:129545729
BRANCH=None
TEST=make -j buildall; Boot to ChromeOS. Force a TCPC FW update and
ensure that the reboot loop does not happen.
Change-Id: I5dd2314cf82dcfff520dc32ce3ced232326ab3d5
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1605260
Commit-Ready: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Tested-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/i2c.h b/include/i2c.h index a43a2223d3..c28230c721 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -420,9 +420,4 @@ void i2c_start_xfer_notify(int port, int slave_addr); */ void i2c_end_xfer_notify(int port, int slave_addr); -/** - * Function to protect I2C port/tunnel. This is invoked either when through - * host command or when sys_jump is disabld. - */ -void i2c_passthru_protect_port(uint32_t port); #endif /* __CROS_EC_I2C_H */ |