MLK-16092 Revert "MLK-16088 which is not correct"
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 Jul 2017 02:19:12 +0000 (10:19 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:04 +0000 (02:37 +0800)
This reverts commit 671482a96196abacf8de446fb634b3c32e7027c2.
This is not correct and breaks ums.

drivers/usb/gadget/ci_udc.c

index 603b242..05c01ce 100644 (file)
@@ -1,7 +1,6 @@
 /*
  * Copyright 2011, Marvell Semiconductor Inc.
  * Lei Wen <leiwen@marvell.com>
- * Copyright 2017 NXP
  *
  * SPDX-License-Identifier:    GPL-2.0+
  *
@@ -524,11 +523,6 @@ static void ci_ep_submit_next_request(struct ci_ep *ci_ep)
                bit = EPT_RX(num);
 
        writel(bit, &udc->epprime);
-       /* Waiting transfer finish */
-       while (readl(&udc->epprime) & bit)
-               ;
-       /* Set false to accept following request */
-       ci_ep->req_primed = false;
 }
 
 static int ci_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req)