aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Zhang <zhangwm@marvell.com>2011-10-12 04:49:27 -0400
committerFelipe Balbi <balbi@ti.com>2011-10-13 13:41:59 -0400
commitbedcff970e16d36324ddbfa61de33e4640c9d619 (patch)
treecba95b595f1ad65e9108c29ddd6b039084173289
parent4540a9ab319f1a55ded5f635da66da60d3c93e69 (diff)
usb: gadget: mv_udc: fix a clerical error
The max size of data payload is in bit0 - bit10, so we need use 0x7ff as the bitmask to fetch from usb_endpoint_descriptor.wMaxPacketSize. Signed-off-by: Neil Zhang <zhangwm@marvell.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/mv_udc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c
index 84655289aea9..e2b302f11d07 100644
--- a/drivers/usb/gadget/mv_udc_core.c
+++ b/drivers/usb/gadget/mv_udc_core.c
@@ -546,7 +546,7 @@ static int mv_ep_enable(struct usb_ep *_ep,
546 case USB_ENDPOINT_XFER_ISOC: 546 case USB_ENDPOINT_XFER_ISOC:
547 /* Calculate transactions needed for high bandwidth iso */ 547 /* Calculate transactions needed for high bandwidth iso */
548 mult = (unsigned char)(1 + ((max >> 11) & 0x03)); 548 mult = (unsigned char)(1 + ((max >> 11) & 0x03));
549 max = max & 0x8ff; /* bit 0~10 */ 549 max = max & 0x7ff; /* bit 0~10 */
550 /* 3 transactions at most */ 550 /* 3 transactions at most */
551 if (mult > 3) 551 if (mult > 3)
552 goto en_done; 552 goto en_done;