This is a series of cleanup patches for em28xx I2C. It was originally part of a series of patches meant to split em28xx V4L2 module, but it makes sense to submit as a separate patch set. This series basically does: - make em28xx compilant with standard I2C errors, as defined at Documentation/i2c/fault-codes; - Use jiffies for the timeouts, to make the timeout reliable; - Better define a value for the I2C timeout, according with the SMBUS spec. This value works properly on the devices tested (WinTV 2 USB, Kworld 305U and HVR-950); - Add 2 levels of I2C debug messages. On the first level, it displays only the I2C I/O error messages. On the second level, it displays the entire I2C transfer data; - Enable I2C timeout debug errors, if i2c_debug=1. Thanks to Frank Schäfer <fschaefer.oss@xxxxxxxxxxxxxx> for his pach review. Mauro Carvalho Chehab (6): [media] em28xx: convert i2c wait completion logic to use jiffies [media] em28xx: rename I2C timeout to EM28XX_I2C_XFER_TIMEOUT [media] em28xx: use a better value for I2C timeouts em28xx-i2c: Fix error code for I2C error transfers [media] em28xx: cleanup I2C debug messages em28xx: add timeout debug information if i2c_debug enabled drivers/media/usb/em28xx/em28xx-i2c.c | 191 ++++++++++++++++++++-------------- drivers/media/usb/em28xx/em28xx.h | 17 ++- 2 files changed, 125 insertions(+), 83 deletions(-) -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html