usb: gadget: mv_udc: ep0 needn't set toggle flag
authorNeil Zhang <zhangwm@marvell.com>
Wed, 12 Oct 2011 08:49:28 +0000 (16:49 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:42:00 +0000 (20:42 +0300)
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>
drivers/usb/gadget/mv_udc_core.c

index e2b302f11d07d7e7a3640cabddcd08d7555f9b08..80168d11841de286e27f015134b22497582176ac 100644 (file)
@@ -98,12 +98,12 @@ static void ep0_reset(struct mv_udc *udc)
 
                epctrlx = readl(&udc->op_regs->epctrlx[0]);
                if (i) {        /* TX */
-                       epctrlx |= EPCTRL_TX_ENABLE | EPCTRL_TX_DATA_TOGGLE_RST
+                       epctrlx |= EPCTRL_TX_ENABLE
                                | (USB_ENDPOINT_XFER_CONTROL
                                        << EPCTRL_TX_EP_TYPE_SHIFT);
 
                } else {        /* RX */
-                       epctrlx |= EPCTRL_RX_ENABLE | EPCTRL_RX_DATA_TOGGLE_RST
+                       epctrlx |= EPCTRL_RX_ENABLE
                                | (USB_ENDPOINT_XFER_CONTROL
                                        << EPCTRL_RX_EP_TYPE_SHIFT);
                }