]> git.karo-electronics.de Git - linux-beck.git/commit
[media] rtl28xxu: correct usb_clear_halt() usage
authorAntti Palosaari <crope@iki.fi>
Sat, 1 Sep 2012 12:54:43 +0000 (09:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 Sep 2012 15:22:01 +0000 (12:22 -0300)
commit8b03663644002a6c742dd38dbdc8300da85293da
treed32fbfb44723ae28349367b033fa61d2fe326624
parentc392e9e13e398c3ebf37e60942c2ddadbe823880
[media] rtl28xxu: correct usb_clear_halt() usage

It is not allowed to call usb_clear_halt() after urbs are submitted.
That causes oops sometimes. Move whole streaming_ctrl() logic to
power_ctrl() in order to avoid wrong usb_clear_halt() use. Also,
configuring streaming endpoint in streaming_ctrl() sounds like a
little bit wrong as it is aimed for control stream gate.

Reported-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c