[media] em28xx-i2c: add timeout debug information if i2c_debug enabled
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 6 Jan 2014 12:17:53 +0000 (09:17 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 12 Jan 2014 13:56:46 +0000 (11:56 -0200)
commitd845fb3ae5b97bda8810f450030c061b49a0b91b
treee74ce19d65a3c5e94ca034748d012c42117992cc
parent50f0a9df275b81096fbc0878c6deb5d99311549e
[media] em28xx-i2c: add timeout debug information if i2c_debug enabled

If i2c_debug is enabled, we splicitly want to know when a
device fails with timeout.

If i2c_debug==2, this is already provided, for each I2C transfer
that fails.

However, most of the time, we don't need to go that far. We just
want to know that I2C transfers fail.

So, add such errors for normal (ret == 0x10) I2C aborted timeouts.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-i2c.c