android_kernel_motorola_sm6225/drivers/media/usb/em28xx
Frank Schaefer 2fcc82d883 [media] em28xx: fix two severe bugs in function em2800_i2c_recv_bytes()
Function em2800_i2c_recv_bytes() has 2 severe bugs:
1) It does not wait for the i2c read to complete before reading the received message content from the bridge registers.
2) Reading more than 1 byte doesn't work
The former can result in data corruption, the latter always does.
The rewritten code also superseds the content of function
em2800_i2c_check_for_device().
Tested with device "Terratec Cinergy 200 USB".

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

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-01-05 01:16:01 -02:00
..
em28xx-audio.c
em28xx-cards.c [media] em28xx: refactor the code in em28xx_usb_disconnect() 2013-01-05 01:10:13 -02:00
em28xx-core.c [media] em28xx: simplify device state tracking 2013-01-05 01:09:39 -02:00
em28xx-dvb.c [media] em28xx: simplify device state tracking 2013-01-05 01:09:39 -02:00
em28xx-i2c.c [media] em28xx: fix two severe bugs in function em2800_i2c_recv_bytes() 2013-01-05 01:16:01 -02:00
em28xx-input.c [media] em28xx: IR RC: move assignment of get_key functions from *_change_protocol() functions to em28xx_ir_init() 2013-01-05 01:12:11 -02:00
em28xx-reg.h [media] em28xx: improve USB endpoint logic, also use bulk transfers 2012-12-22 18:17:52 -02:00
em28xx-vbi.c [media] em28xx: convert to videobuf2 2013-01-05 01:03:38 -02:00
em28xx-video.c [media] em28xx: simplify device state tracking 2013-01-05 01:09:39 -02:00
em28xx.h [media] em28xx: fix two severe bugs in function em2800_i2c_recv_bytes() 2013-01-05 01:16:01 -02:00
Kconfig [media] em28xx: convert to videobuf2 2013-01-05 01:03:38 -02:00
Makefile