提交 df4769e3 编写于 作者: F Felipe Balbi

usb: gadget: udc: mv_udc: make use of new usb_endpoint_maxp_mult()

We have introduced a helper to calculate multiplier
value from wMaxPacketSize. Start using it.
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 a0fefbde
......@@ -494,7 +494,7 @@ static int mv_ep_enable(struct usb_ep *_ep,
break;
case USB_ENDPOINT_XFER_ISOC:
/* Calculate transactions needed for high bandwidth iso */
mult = (unsigned char)(1 + ((max >> 11) & 0x03));
mult = usb_endpoint_maxp_mult(desc);
max = max & 0x7ff; /* bit 0~10 */
/* 3 transactions at most */
if (mult > 3)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册