OSDN Git Service

[media] dvb_usb_v2: remove usb_clear_halt() from stream
authorAntti Palosaari <crope@iki.fi>
Wed, 27 Jun 2012 02:01:31 +0000 (23:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:39 +0000 (07:56 -0300)
It works no longer as it was designed since we can change streaming
configuration during device operation.

Maybe it should be performed conditionally on cases when streaming
endpoint is changed. Anyhow, let it out now and add later if needed.

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

index c5e2ff0..eaf673a 100644 (file)
@@ -319,9 +319,6 @@ int usb_urb_initv2(struct usb_data_stream *stream,
 
        memcpy(&stream->props, props, sizeof(*props));
 
-       usb_clear_halt(stream->udev, usb_rcvbulkpipe(stream->udev,
-                       stream->props.endpoint));
-
        if (!stream->complete) {
                dev_err(&stream->udev->dev, "%s: there is no data callback - " \
                                "this doesn't make sense\n", KBUILD_MODNAME);