]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit2a262d729a26f9fb12ed26ee02bb8c734e9a34cb
treee74ce19d65a3c5e94ca034748d012c42117992cc
parent2e89a267db65398e15c7c3cba7a9c7db399b119f
[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