linux/drivers/media
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
..
common [media] siano: Remove redundant NULL check before kfree 2013-03-18 17:03:41 -03:00
dvb-core [media] mb86a20s: change AGC tuning parameters 2013-03-04 16:34:05 -03:00
dvb-frontends [media] stv090x: do not unlock unheld mutex in stv090x_sleep() 2013-03-14 11:40:32 -03:00
firewire [media] remove include/linux/dvb/dmx.h 2012-10-19 07:29:17 -03:00
i2c [media] Media: remove incorrect __init/__exit markups 2013-03-18 16:59:59 -03:00
mmc Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
parport [media] bw-qcam: remove unnecessary qc_reset and qc_setscanmode calls 2013-02-05 18:20:38 -02:00
pci [media] media: ivtv: Remove redundant NULL check before kfree 2013-03-18 17:04:37 -03:00
platform [media] media/v4l2: VIDEOBUF2_DMA_CONTIG should depend on HAS_DMA 2013-03-18 18:03:18 -03:00
radio [media] Media: remove incorrect __init/__exit markups 2013-03-18 16:59:59 -03:00
rc [media] Media: remove incorrect __init/__exit markups 2013-03-18 16:59:59 -03:00
tuners [media] media: tuners: Remove redundant NULL check before kfree 2013-03-18 17:04:55 -03:00
usb [media] em28xx-i2c: relax error check in em28xx_i2c_recv_bytes() 2013-03-18 20:18:29 -03:00
v4l2-core [media] media/v4l2: VIDEOBUF2_DMA_CONTIG should depend on HAS_DMA 2013-03-18 18:03:18 -03:00
Kconfig Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: fix MEDIA_IOC_DEVICE_INFO return code 2012-08-12 07:57:57 -03:00
media-devnode.c [media] media-devnode: Replace printk with pr_* 2012-09-27 14:19:23 -03:00
media-entity.c