aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_host.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-09-28 13:40:40 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-11-03 10:38:21 +0200
commit6ddcabc2aa40ea3c45a4e2c00ae7ed1a1d990121 (patch)
treeff7369adfc7f68883a6d76a527e232644c44dac3 /drivers/usb/musb/musb_host.c
parentusb: misc: usbtest: make use of new usb_endpoint_maxp_mult() (diff)
downloadlinux-dev-6ddcabc2aa40ea3c45a4e2c00ae7ed1a1d990121.tar.xz
linux-dev-6ddcabc2aa40ea3c45a4e2c00ae7ed1a1d990121.zip
usb: musb: make use of new usb_endpoint_maxp_mult()
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Cc: Bin Liu <b-liu@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/musb/musb_host.c')
-rw-r--r--drivers/usb/musb/musb_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 53bc4ceefe89..f6cdbad00dac 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -2237,7 +2237,7 @@ static int musb_urb_enqueue(
* Some musb cores don't support high bandwidth ISO transfers; and
* we don't (yet!) support high bandwidth interrupt transfers.
*/
- qh->hb_mult = 1 + ((qh->maxpacket >> 11) & 0x03);
+ qh->hb_mult = usb_endpoint_maxp_mult(epd);
if (qh->hb_mult > 1) {
int ok = (qh->type == USB_ENDPOINT_XFER_ISOC);