]> 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)
commit03e44cdcf5f154c085b5d6bb881b51ee1bddaa0c
treee74ce19d65a3c5e94ca034748d012c42117992cc
parent9376e11ef4a89bb83ae9abb958c1bf458bc1eaa7
[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