From: Wolfram Sang Date: Mon, 3 Nov 2014 20:16:16 +0000 (+0100) Subject: i2c: at91: don't account as iowait X-Git-Tag: v4.9.8~5384^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11cfbfb098b22d3e57f1f2be217cad20e2d48463;p=platform%2Fkernel%2Flinux-rpi3.git i2c: at91: don't account as iowait iowait is for blkio [1]. I2C shouldn't use it. [1] https://lkml.org/lkml/2014/11/3/317 Signed-off-by: Wolfram Sang Acked-by: Ludovic Desroches Cc: stable@kernel.org --- diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index 917d545..e05a672 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c @@ -434,7 +434,7 @@ static int at91_do_twi_transfer(struct at91_twi_dev *dev) } } - ret = wait_for_completion_io_timeout(&dev->cmd_complete, + ret = wait_for_completion_timeout(&dev->cmd_complete, dev->adapter.timeout); if (ret == 0) { dev_err(dev->dev, "controller timed out\n");