mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 00:17:44 +00:00
usb: gadget: mv_udc: set unused endpoint with right type
According to the comment right above the code, we should use USB_ENDPOINT_XFER_BULK instead. Signed-off-by: Neil Zhang <zhangwm@marvell.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
27cec2b2f7
commit
615268b05f
1 changed files with 2 additions and 2 deletions
|
@ -590,14 +590,14 @@ static int mv_ep_enable(struct usb_ep *_ep,
|
|||
*/
|
||||
epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]);
|
||||
if ((epctrlx & EPCTRL_RX_ENABLE) == 0) {
|
||||
epctrlx |= ((desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
|
||||
epctrlx |= (USB_ENDPOINT_XFER_BULK
|
||||
<< EPCTRL_RX_EP_TYPE_SHIFT);
|
||||
writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]);
|
||||
}
|
||||
|
||||
epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]);
|
||||
if ((epctrlx & EPCTRL_TX_ENABLE) == 0) {
|
||||
epctrlx |= ((desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
|
||||
epctrlx |= (USB_ENDPOINT_XFER_BULK
|
||||
<< EPCTRL_TX_EP_TYPE_SHIFT);
|
||||
writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue