Skip to content

Commit

Permalink
i2c: tegra: remove warning dump if timeout happen in transfer
Browse files Browse the repository at this point in the history
If timeout error occurs in the i2c transfer then it was dumping warning
of call stack.

Remove the warning dump as there is may be possibility that some slave
devices are busy and not responding the i2c communication.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
  • Loading branch information
Laxman Dewangan authored and Wolfram Sang committed Feb 15, 2013
1 parent 724d5ed commit 58823c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
ret = wait_for_completion_timeout(&i2c_dev->msg_complete, TEGRA_I2C_TIMEOUT);
tegra_i2c_mask_irq(i2c_dev, int_mask);

if (WARN_ON(ret == 0)) {
if (ret == 0) {
dev_err(i2c_dev->dev, "i2c transfer timed out\n");

tegra_i2c_init(i2c_dev);
Expand Down

0 comments on commit 58823c7

Please sign in to comment.