linux/drivers/media/usb/em28xx
Mauro Carvalho Chehab e63b009d6e [media] em28xx-i2c: Fix error code for I2C error transfers
Follow the error codes for I2C as described at Documentation/i2c/fault-codes.

In the case of the I2C status register (0x05), this is mapped into:

	- ENXIO - when reg 05 returns 0x10
	- ETIMEDOUT - when the device is not temporarily not responding
		      (e. g. reg 05 returning something not 0x10 or 0x00)
	- EIO - for generic I/O errors that don't fit into the above.

In the specific case of 0-byte reads, used only during I2C device
probing, it keeps returning -ENODEV.

TODO: return EBUSY when reg 05 returns 0x20 on em2874 and upper.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-01-12 11:54:14 -02:00
..
em28xx-audio.c [media] em28xx-audio: allocate URBs at device driver init 2014-01-10 06:01:47 -02:00
em28xx-camera.c [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00
em28xx-cards.c [media] export em28xx_release_resources() symbol 2014-01-07 08:05:01 -02:00
em28xx-core.c [media] em28xx: properly implement AC97 wait code 2014-01-10 06:06:20 -02:00
em28xx-dvb.c [media] em28xx: prevent registering wrong interfaces for audio-only 2014-01-07 05:14:50 -02:00
em28xx-i2c.c [media] em28xx-i2c: Fix error code for I2C error transfers 2014-01-12 11:54:14 -02:00
em28xx-input.c [media] media: Remove OOM message after input_allocate_device 2014-01-07 08:01:42 -02:00
em28xx-reg.h [media] em28xx: fix I2S audio sample rate definitions and info output 2014-01-07 08:33:29 -02:00
em28xx-v4l.h [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00
em28xx-vbi.c [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00
em28xx-video.c [media] em28xx: prevent registering wrong interfaces for audio-only 2014-01-07 05:14:50 -02:00
em28xx.h [media] em28xx: use a better value for I2C timeouts 2014-01-10 06:10:07 -02:00
Kconfig [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00
Makefile [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00