USB: mxc: gadget: Fix bitfield for calculating maximum packet size
authorDinh Nguyen <Dinh.Nguyen@freescale.com>
Tue, 4 May 2010 15:03:01 +0000 (10:03 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:40 +0000 (13:21 -0700)
commit88e3b59b5adce5b12e205af0e34d518ba0dcdc0c
tree050fa0b7859e1fa459e91fe6caafeedc36fb64d5
parent97dc7c61f1a25e906c0eb65fac2573e1ce063d63
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>
drivers/usb/gadget/fsl_udc_core.c