]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: chipidea: udc: Don't flush endpoint fifo twice
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 9 Jul 2016 14:16:39 +0000 (14:16 +0000)
committerPeter Chen <peter.chen@nxp.com>
Wed, 14 Sep 2016 02:58:13 +0000 (10:58 +0800)
The endpoint fifo is already flushed in _ep_nuke so there
is no need to flush it twice.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/udc.c

index b0c4ae1cd206635717328fb687f4cb0edc28d18b..a66a47a9d2a78c49c8e414f176a673c6d37a0afa 100644 (file)
@@ -121,7 +121,6 @@ static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir)
  */
 static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir)
 {
-       hw_ep_flush(ci, num, dir);
        hw_write(ci, OP_ENDPTCTRL + num,
                 dir ? ENDPTCTRL_TXE : ENDPTCTRL_RXE, 0);
        return 0;