Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15e9c602 authored by Ankit Gupta's avatar Ankit Gupta
Browse files

i2c-msm-v2: call bus recovery in case of timeout



this patch enables the bus recovery procedure to be
called in case of timeout error when slave is holding
SDA line low when bus is active.

Change-Id: Ie3e1b3342b997f541d583bd337b732a5ce1e033e
Signed-off-by: default avatarAnkit Gupta <ankgupta@codeaurora.org>
parent 3c7ef256
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2945,7 +2945,8 @@ static int i2c_msm_qup_post_xfer(struct i2c_msm_ctrl *ctrl, int err)
	/* poll until bus is released */
	if (i2c_msm_qup_poll_bus_active_unset(ctrl)) {
		if ((ctrl->xfer.err & I2C_MSM_ERR_ARB_LOST) ||
		    (ctrl->xfer.err & I2C_MSM_ERR_BUS_ERR)) {
		    (ctrl->xfer.err & I2C_MSM_ERR_BUS_ERR) ||
		    (ctrl->xfer.err & I2C_MSM_ERR_TIMEOUT)) {
			if (i2c_msm_qup_slv_holds_bus(ctrl))
				qup_i2c_recover_bus_busy(ctrl);