From c23cced7340ba977e9aacb9af02b86ac5df7d347 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Thu, 9 May 2019 17:43:02 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1605260 Commit-Ready: Karthikeyan Ramasubramanian Tested-by: Karthikeyan Ramasubramanian Legacy-Commit-Queue: Commit Bot Reviewed-by: Jett Rink Reviewed-by: Diana Z --- include/i2c.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'include/i2c.h') 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 */ -- cgit v1.2.1