diff options
author | Chaitanya Bandi <bandik@nvidia.com> | 2013-01-30 10:09:14 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-01-30 15:17:08 -0800 |
commit | f2c6207ff4f4b93227a103a71d1519b7744e609d (patch) | |
tree | c4136623f3cf26b468f53534bbaeb895be4ecd59 /drivers/i2c | |
parent | 0179fea9f318b960660c3a2fecdf29fefe7c13e8 (diff) |
i2c: tegra: Return -EAGAIN in case of ARB Lost
In case of ARB lost, return -EAGAIN so that the
communication is retried.
Bug 1222180
Change-Id: I003e02732568e08fabf6fe15f687e6ae73169f66
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/195401
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 003ceb12e4e4..9a42f6423ace 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -936,6 +936,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_bus *i2c_bus, } else if (i2c_dev->arb_recovery) i2c_dev->arb_recovery(i2c_bus->scl_gpio, i2c_bus->sda_gpio); + return -EAGAIN; } if (i2c_dev->msg_err == I2C_ERR_NO_ACK) { |