diff options
author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2013-10-01 14:04:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-03 15:46:26 -0700 |
commit | 1a7ff0e3673807ff6f38e7ae7b79e46a986fc578 (patch) | |
tree | a1f2eb02914fa5d026d09de41f2ffafdb64aca7a /drivers/usb/wusbcore | |
parent | 7e176dcb035eef8917e5fc2e653460b5410dbc34 (diff) | |
download | linux-1a7ff0e3673807ff6f38e7ae7b79e46a986fc578.tar.gz linux-1a7ff0e3673807ff6f38e7ae7b79e46a986fc578.tar.bz2 linux-1a7ff0e3673807ff6f38e7ae7b79e46a986fc578.zip |
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 <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/wusbcore')
-rw-r--r-- | drivers/usb/wusbcore/wa-rpipe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/wusbcore/wa-rpipe.c b/drivers/usb/wusbcore/wa-rpipe.c index fd4f1ce6256a..554b16bd22f1 100644 --- a/drivers/usb/wusbcore/wa-rpipe.c +++ b/drivers/usb/wusbcore/wa-rpipe.c @@ -361,8 +361,10 @@ static int rpipe_aim(struct wa_rpipe *rpipe, struct wahc *wa, epcd->bMaxSequence, 32U), 2U); rpipe->descr.bMaxDataSequence = epcd_max_sequence - 1; rpipe->descr.bInterval = ep->desc.bInterval; - /* FIXME: bOverTheAirInterval */ - rpipe->descr.bOverTheAirInterval = 0; /* 0 if not isoc */ + if (usb_endpoint_xfer_isoc(&ep->desc)) + rpipe->descr.bOverTheAirInterval = epcd->bOverTheAirInterval; + else + rpipe->descr.bOverTheAirInterval = 0; /* 0 if not isoc */ /* FIXME: xmit power & preamble blah blah */ rpipe->descr.bmAttribute = (ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK); |