diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2016-07-09 17:16:39 +0300 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2016-09-14 05:58:13 +0300 |
commit | 8007eb4e1824e52483ad99fb229fc56e6a73cec6 (patch) | |
tree | 46471f7e3e18be29b1f4517459bc10a966e76ead /drivers/usb/chipidea/udc.c | |
parent | 66b76dbe37df88b250ffdac186adba3e5dc24631 (diff) | |
download | linux-8007eb4e1824e52483ad99fb229fc56e6a73cec6.tar.xz |
usb: chipidea: udc: Don't flush endpoint fifo twice
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>
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
-rw-r--r-- | drivers/usb/chipidea/udc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index b0c4ae1cd206..a66a47a9d2a7 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -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; |