mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "i2c: i2c-msm-geni: Report NACK as an error to client"
This commit is contained in:
commit
b48d25e6ca
1 changed files with 8 additions and 4 deletions
|
|
@ -1235,11 +1235,15 @@ geni_i2c_txn_ret:
|
|||
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);
|
||||
return 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;
|
||||
}
|
||||
|
||||
static u32 geni_i2c_func(struct i2c_adapter *adap)
|
||||
|
|
|
|||
Loading…
Reference in a new issue