summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDinh Nguyen2010-05-04 17:03:01 +0200
committerGreg Kroah-Hartman2010-05-20 22:21:40 +0200
commit88e3b59b5adce5b12e205af0e34d518ba0dcdc0c (patch)
tree050fa0b7859e1fa459e91fe6caafeedc36fb64d5 /drivers/usb
parentUSB: ehci-omap: fix Si version related programming (diff)
downloadkernel-qcow2-linux-88e3b59b5adce5b12e205af0e34d518ba0dcdc0c.tar.gz
kernel-qcow2-linux-88e3b59b5adce5b12e205af0e34d518ba0dcdc0c.tar.xz
kernel-qcow2-linux-88e3b59b5adce5b12e205af0e34d518ba0dcdc0c.zip
USB: mxc: gadget: Fix bitfield for calculating maximum packet size
The max packet length bit mask used for isochronous endpoints should be 0x7FF instead of 0x8FF. 0x8FF will actually clear higher-order bits in the max packet length field. This patch applies to 2.6.34-rc6. Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/fsl_udc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c
index fa3d142ba64d..08a9a62a39e3 100644
--- a/drivers/usb/gadget/fsl_udc_core.c
+++ b/drivers/usb/gadget/fsl_udc_core.c
@@ -489,7 +489,7 @@ static int fsl_ep_enable(struct usb_ep *_ep,
case USB_ENDPOINT_XFER_ISOC:
/* Calculate transactions needed for high bandwidth iso */
mult = (unsigned char)(1 + ((max >> 11) & 0x03));
- max = max & 0x8ff; /* bit 0~10 */
+ max = max & 0x7ff; /* bit 0~10 */
/* 3 transactions at most */
if (mult > 3)
goto en_done;