Skip to content

Commit 1a7ff0e

Browse files
TomServo3000gregkh
authored andcommitted
usb: wusbcore: set the RPIPE bOverTheAirInterval for isoc endpoints
This patch sets the RPIPE bOverTheAirInterval field for RPIPES which refer to isochronous endpoints. Signed-off-by: Thomas Pugliese <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7e176dc commit 1a7ff0e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/usb/wusbcore/wa-rpipe.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,10 @@ static int rpipe_aim(struct wa_rpipe *rpipe, struct wahc *wa,
361361
epcd->bMaxSequence, 32U), 2U);
362362
rpipe->descr.bMaxDataSequence = epcd_max_sequence - 1;
363363
rpipe->descr.bInterval = ep->desc.bInterval;
364-
/* FIXME: bOverTheAirInterval */
365-
rpipe->descr.bOverTheAirInterval = 0; /* 0 if not isoc */
364+
if (usb_endpoint_xfer_isoc(&ep->desc))
365+
rpipe->descr.bOverTheAirInterval = epcd->bOverTheAirInterval;
366+
else
367+
rpipe->descr.bOverTheAirInterval = 0; /* 0 if not isoc */
366368
/* FIXME: xmit power & preamble blah blah */
367369
rpipe->descr.bmAttribute = (ep->desc.bmAttributes &
368370
USB_ENDPOINT_XFERTYPE_MASK);

0 commit comments

Comments
 (0)