usb: wusbcore: combine iso transfer result frame reads when possible
commit04a378f36d9dc9e242ff206fcad23ba258dba818
authorThomas Pugliese <thomas.pugliese@gmail.com>
Fri, 7 Mar 2014 21:37:34 +0000 (7 15:37 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 06:30:28 +0000 (8 22:30 -0800)
treeb28e1ad06cffbdb07190eb83a6259485bbc99a82
parent7338a0659365ec0fbdc6f79de8b9fba2280fd155
usb: wusbcore: combine iso transfer result frame reads when possible

When reading the transfer result data for an isochronous in request, if
the current frame actual_length is contiguous with the next frame and
actual_length is a multiple of the DTI endpoint max packet size, combine
the current frame with the next frame in a single URB.  This reduces the
number of URBs that must be submitted in that case which increases
performance and reduces CPU interrupt overhead.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/wa-xfer.c