Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bedcff97 authored by Neil Zhang's avatar Neil Zhang Committed by Felipe Balbi
Browse files

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: default avatarNeil Zhang <zhangwm@marvell.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 4540a9ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -546,7 +546,7 @@ static int mv_ep_enable(struct usb_ep *_ep,
	case USB_ENDPOINT_XFER_ISOC:
	case USB_ENDPOINT_XFER_ISOC:
		/* Calculate transactions needed for high bandwidth iso */
		/* Calculate transactions needed for high bandwidth iso */
		mult = (unsigned char)(1 + ((max >> 11) & 0x03));
		mult = (unsigned char)(1 + ((max >> 11) & 0x03));
		max = max & 0x8ff;	/* bit 0~10 */
		max = max & 0x7ff;	/* bit 0~10 */
		/* 3 transactions at most */
		/* 3 transactions at most */
		if (mult > 3)
		if (mult > 3)
			goto en_done;
			goto en_done;