usb: gadget: mv_udc: ep0 needn't set toggle flag
According to ChipIdea datasheet, there is no toggle flag for ep0. Signed-off-by: Neil Zhang <zhangwm@marvell.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
bedcff970e
commit
43ad9f3fae
1 changed files with 2 additions and 2 deletions
|
@ -98,12 +98,12 @@ static void ep0_reset(struct mv_udc *udc)
|
||||||
|
|
||||||
epctrlx = readl(&udc->op_regs->epctrlx[0]);
|
epctrlx = readl(&udc->op_regs->epctrlx[0]);
|
||||||
if (i) { /* TX */
|
if (i) { /* TX */
|
||||||
epctrlx |= EPCTRL_TX_ENABLE | EPCTRL_TX_DATA_TOGGLE_RST
|
epctrlx |= EPCTRL_TX_ENABLE
|
||||||
| (USB_ENDPOINT_XFER_CONTROL
|
| (USB_ENDPOINT_XFER_CONTROL
|
||||||
<< EPCTRL_TX_EP_TYPE_SHIFT);
|
<< EPCTRL_TX_EP_TYPE_SHIFT);
|
||||||
|
|
||||||
} else { /* RX */
|
} else { /* RX */
|
||||||
epctrlx |= EPCTRL_RX_ENABLE | EPCTRL_RX_DATA_TOGGLE_RST
|
epctrlx |= EPCTRL_RX_ENABLE
|
||||||
| (USB_ENDPOINT_XFER_CONTROL
|
| (USB_ENDPOINT_XFER_CONTROL
|
||||||
<< EPCTRL_RX_EP_TYPE_SHIFT);
|
<< EPCTRL_RX_EP_TYPE_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue