]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] rtl28xxu: stream did not start after stop on USB3.0
authorAntti Palosaari <crope@iki.fi>
Tue, 21 Aug 2012 22:56:18 +0000 (19:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 15 Sep 2012 12:29:27 +0000 (09:29 -0300)
Stream did not start anymore after stream was stopped once.

Following error can be seen, xhci_hcd
WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.

usb_clear_halt for streaming endpoint helps.

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

index d2b1505b36f9a863ea8bce04a10f8ccf7a60b8b9..1ccb99b0a2043a61a59406976f708c7a74ba2f7a 100644 (file)
@@ -834,6 +834,7 @@ static int rtl28xxu_streaming_ctrl(struct dvb_frontend *fe , int onoff)
        if (onoff) {
                buf[0] = 0x00;
                buf[1] = 0x00;
+               usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, 0x81));
        } else {
                buf[0] = 0x10; /* stall EPA */
                buf[1] = 0x02; /* reset EPA */