From: JiebingLi <jiebing.li@xxxxxxxxx> This patch is used to fix max packet size issue in langwell_udc controller driver. As max packct size is 1024 for ISO transfer, 0x7ff (bit 0~10) should be used to compute the value. If 0x8ff is used, the value may be wrongly set as 0 instead of 1024 or 512. Signed-off-by: JiebingLi <jiebing.li@xxxxxxxxx> --- drivers/usb/gadget/langwell_udc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/gadget/langwell_udc.c b/drivers/usb/gadget/langwell_udc.c index 8f17d16..0a14292 100644 --- a/drivers/usb/gadget/langwell_udc.c +++ b/drivers/usb/gadget/langwell_udc.c @@ -345,7 +345,7 @@ static int langwell_ep_enable(struct usb_ep *_ep, * 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 done; -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html