staging: rts5139: Use correct USB transfer interval to fix syslog spamming
authorMarcus Overhagen <marcus.overhagen@gmail.com>
Mon, 3 Jun 2013 18:14:02 +0000 (20:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 19:15:34 +0000 (12:15 -0700)
Using correct transfer interval as specified by the USB endpoint
when doing the interrupt transfer fixes the warning printed by
xhci USB core on every transfer that resulted in spamming
"xhci_queue_intr_tx: 74 callbacks suppressed" to syslog
every 5 seconds.

Signed-off-by: Marcus Overhagen <marcus.overhagen@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5139/rts51x_transport.c

index c573618051e69a9f3d33c89ea5b0e0aedb1382cc..c172f4ae7c2387c719f0c17146d279cc055efaf2 100644 (file)
@@ -635,10 +635,10 @@ int rts51x_get_epc_status(struct rts51x_chip *chip, u16 *status)
        ep = chip->usb->pusb_dev->ep_in[usb_pipeendpoint(pipe)];
 
        /* fill and submit the URB */
-       /* We set interval to 1 here, so the polling interval is controlled
-        * by our polling thread */
+       /* Set interval to 10 here to match the endpoint descriptor,
+        * the polling interval is controlled by the polling thread */
        usb_fill_int_urb(chip->usb->intr_urb, chip->usb->pusb_dev, pipe,
-                        status, 2, urb_done_completion, &urb_done, 1);
+                        status, 2, urb_done_completion, &urb_done, 10);
 
        result = rts51x_msg_common(chip, chip->usb->intr_urb, 100);
 
This page took 0.025522 seconds and 5 git commands to generate.