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

Commit 09c88be7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "i2c: i2c-qcom-geni: Wait for abort command completion"

parents 6a77c76d 35afa3f3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -870,8 +870,14 @@ static int geni_i2c_xfer(struct i2c_adapter *adap,
			timeout = wait_for_completion_timeout(&gi2c->xfer, HZ);
			if (!timeout) {
				GENI_SE_ERR(gi2c->ipcl, true, gi2c->dev,
					"Abort\n");
					"Cancel failed\n");
				reinit_completion(&gi2c->xfer);
				geni_abort_m_cmd(gi2c->base);
				timeout =
				wait_for_completion_timeout(&gi2c->xfer, HZ);
				if (!timeout)
					GENI_SE_ERR(gi2c->ipcl, true, gi2c->dev,
						"Abort failed\n");
			}
		}
		gi2c->cur_wr = 0;