linux/drivers/media/usb/em28xx
Frank Schaefer 7f6301d125 [media] em28xx-i2c: relax error check in em28xx_i2c_recv_bytes()
It turned out that some devices return less bytes then requested via i2c when
ALL of the following 3 conditions are met:
- i2c bus B is used
- there was no attempt to write to the specified slave address before
- no device present at the specified slave address
With the current code, this triggers an -EIO error and prints a message to the
system log.
Because it can happen very often during device probing, it is better to ignore
this error and bail out silently after the follwing i2c transaction success
check with -ENODEV.

[mchehab@redhat.com: a small CodingStyle fix]
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-03-18 20:18:29 -03:00
..
em28xx-audio.c
em28xx-cards.c [media] em28xx: add support for registering multiple i2c buses 2013-03-18 18:56:27 -03:00
em28xx-core.c [media] em28xx: introduce #defines for the image quality default settings 2013-03-04 14:50:31 -03:00
em28xx-dvb.c [media] em28xx: Prepare to support 2 different I2C buses 2013-03-18 18:14:15 -03:00
em28xx-i2c.c [media] em28xx-i2c: relax error check in em28xx_i2c_recv_bytes() 2013-03-18 20:18:29 -03:00
em28xx-input.c [media] em28xx: Prepare to support 2 different I2C buses 2013-03-18 18:14:15 -03:00
em28xx-reg.h [media] em28xx: introduce #defines for the image quality default settings 2013-03-04 14:50:31 -03:00
em28xx-vbi.c [media] em28xx: convert to videobuf2 2013-01-05 01:03:38 -02:00
em28xx-video.c [media] em28xx: set the timestamp type for video and vbi vb2_queues 2013-03-18 20:16:47 -03:00
em28xx.h [media] em28xx: add support for registering multiple i2c buses 2013-03-18 18:56:27 -03:00
Kconfig [media] em28xx: convert to videobuf2 2013-01-05 01:03:38 -02:00
Makefile [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00