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

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

Merge "i2c: i2c-msm-geni: Report NACK as an error to client"

parents 0700b462 f811f2e8
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1235,10 +1235,14 @@ static int geni_i2c_xfer(struct i2c_adapter *adap,
		pm_runtime_mark_last_busy(gi2c->dev);
		pm_runtime_put_autosuspend(gi2c->dev);
	}

	gi2c->cur = NULL;
	gi2c->err = 0;
	GENI_SE_DBG(gi2c->ipcl, false, gi2c->dev,
			"i2c txn ret:%d\n", ret);
	GENI_SE_ERR(gi2c->ipcl, true, gi2c->dev,
		"i2c txn ret:%d, num:%d, err%:%d\n", ret, num, gi2c->err);

	if (gi2c->err)
		return gi2c->err;
	else
		return ret;
}