aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Zhang <zhangwm@marvell.com>2011-10-12 04:49:29 -0400
committerFelipe Balbi <balbi@ti.com>2011-10-13 13:42:01 -0400
commitfbebe1f070a73c108415bb9ee0483570650e2712 (patch)
treea08ef325655fdd9e969800db4e4449b223c5634a
parent43ad9f3faea18d7b3e1183753d3e6372a7037edf (diff)
usb: gadget: mv_udc: init next dtd ptr for dqh when init ep0
Set next dtd ptr to EP_QUEUE_HEAD_NEXT_TERMINATE for dqh when init ep0. It means the dQH is empty. Signed-off-by: Neil Zhang <zhangwm@marvell.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/mv_udc_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c
index 80168d11841d..8dab8c4d10bd 100644
--- a/drivers/usb/gadget/mv_udc_core.c
+++ b/drivers/usb/gadget/mv_udc_core.c
@@ -96,6 +96,8 @@ static void ep0_reset(struct mv_udc *udc)
96 (EP0_MAX_PKT_SIZE << EP_QUEUE_HEAD_MAX_PKT_LEN_POS) 96 (EP0_MAX_PKT_SIZE << EP_QUEUE_HEAD_MAX_PKT_LEN_POS)
97 | EP_QUEUE_HEAD_IOS; 97 | EP_QUEUE_HEAD_IOS;
98 98
99 ep->dqh->next_dtd_ptr = EP_QUEUE_HEAD_NEXT_TERMINATE;
100
99 epctrlx = readl(&udc->op_regs->epctrlx[0]); 101 epctrlx = readl(&udc->op_regs->epctrlx[0]);
100 if (i) { /* TX */ 102 if (i) { /* TX */
101 epctrlx |= EPCTRL_TX_ENABLE 103 epctrlx |= EPCTRL_TX_ENABLE