]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dvb_usb_v2: switch interruptible mutex to normal
authorAntti Palosaari <crope@iki.fi>
Wed, 7 Nov 2012 22:52:52 +0000 (23:52 +0100)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 9 Nov 2012 14:33:58 +0000 (15:33 +0100)
commit8504a13ad2ec552dad127b85231e68331e700b8e
tree22432506bacdac336fdaffa39ff0d57f6ecb21d0
parentb1078fb94793902c9bf28f20b7a2e9db1b990ca7
[media] dvb_usb_v2: switch interruptible mutex to normal

Fixes error: dvb_usb_v2: pid_filter() failed=-4

error code -4 is EINTR, Interrupted system call

That error blocks I/O in some cases as -EINTR error was returned
by the mutex which was protecting USB control messages. We want
configure hardware to sleep mode on every case after tuning is
stopped. That kind of behavior blocks it, leaving hardware some
unwanted state in worst case.

That error was seen every time when af9015 was plugged to USB1.1
which leads use of hardware PID filters. Stop tuning (tzap) with
ctrl+c failed as driver tries to remove hardware PID filters.

Tested with every hardware which uses routine in question.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c