android_kernel_xiaomi_sm8350/drivers/media/video/pvrusb2
Mike Isely c82732a428 V4L/DVB (9300): pvrusb2: Fix deadlock problem
Fix deadlock problem in 2.6.27 caused by new USB core behavior in
response to a USB device reset request.  With older kernels, the USB
device reset was "in line"; the reset simply took place and the driver
retained its association with the hardware.  However now this reset
triggers a disconnect, and worse still the disconnect callback happens
in the context of the caller who asked for the device reset.  This
results in an attempt by the pvrusb2 driver to recursively take a
mutex it already has, which deadlocks the driver's worker thread.
(Even if the disconnect callback were to happen on a different thread
we'd still have problems however - because while the driver should
survive and correctly disconnect / reconnect, it will then trigger
another device reset during the repeated initialization, which will
then cause another disconect, etc, forever.)  The fix here is simply
to not attempt the device reset (it was of marginal value anyway).

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-21 14:20:51 -02:00
..
Kconfig
Makefile
pvrusb2-audio.c
pvrusb2-audio.h
pvrusb2-context.c
pvrusb2-context.h
pvrusb2-ctrl.c V4L/DVB (8902): pvrusb2: Remove comment lines which refer to checkpatch's behavior 2008-10-12 09:36:58 -02:00
pvrusb2-ctrl.h V4L/DVB (8898): pvrusb2: Be able to programmatically retrieve a control's default value 2008-10-12 09:36:57 -02:00
pvrusb2-cx2584x-v4l.c
pvrusb2-cx2584x-v4l.h
pvrusb2-debug.h
pvrusb2-debugifc.c
pvrusb2-debugifc.h
pvrusb2-devattr.c
pvrusb2-devattr.h
pvrusb2-dvb.c
pvrusb2-dvb.h
pvrusb2-eeprom.c
pvrusb2-eeprom.h
pvrusb2-encoder.c
pvrusb2-encoder.h
pvrusb2-fx2-cmd.h
pvrusb2-hdw-internal.h V4L/DVB (8900): pvrusb2: Implement cropping pass through 2008-10-12 09:36:57 -02:00
pvrusb2-hdw.c V4L/DVB (9300): pvrusb2: Fix deadlock problem 2008-10-21 14:20:51 -02:00
pvrusb2-hdw.h V4L/DVB (8900): pvrusb2: Implement cropping pass through 2008-10-12 09:36:57 -02:00
pvrusb2-i2c-chips-v4l2.c V4L/DVB (8896): pvrusb2: Implement crop support 2008-10-12 09:36:57 -02:00
pvrusb2-i2c-cmd-v4l2.c V4L/DVB (8902): pvrusb2: Remove comment lines which refer to checkpatch's behavior 2008-10-12 09:36:58 -02:00
pvrusb2-i2c-cmd-v4l2.h V4L/DVB (8896): pvrusb2: Implement crop support 2008-10-12 09:36:57 -02:00
pvrusb2-i2c-core.c V4L/DVB (8906): v4l-dvb: fix assorted sparse warnings 2008-10-12 09:36:58 -02:00
pvrusb2-i2c-core.h
pvrusb2-io.c
pvrusb2-io.h
pvrusb2-ioread.c
pvrusb2-ioread.h
pvrusb2-main.c V4L/DVB (9116): USB: remove info() macro from usb media drivers 2008-10-12 09:37:14 -02:00
pvrusb2-std.c
pvrusb2-std.h
pvrusb2-sysfs.c V4L/DVB (8902): pvrusb2: Remove comment lines which refer to checkpatch's behavior 2008-10-12 09:36:58 -02:00
pvrusb2-sysfs.h
pvrusb2-tuner.c
pvrusb2-tuner.h
pvrusb2-util.h
pvrusb2-v4l2.c V4L/DVB (8900): pvrusb2: Implement cropping pass through 2008-10-12 09:36:57 -02:00
pvrusb2-v4l2.h
pvrusb2-video-v4l.c
pvrusb2-video-v4l.h
pvrusb2-wm8775.c
pvrusb2-wm8775.h
pvrusb2.h