Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bb66633 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Stephen Boyd
Browse files

USB: ci13xxx_udc: Avoid flushing endpoint twice during disable



The ep_disable() function nukes all pending requests before
disabling the endpoint in hardware.  The endpoint is flushed
during nuking.  Don't flush the endpoint again.

CRs-Fixed: 445916
Change-Id: Ib330c67b360b448ec524e6ef0e8c040f04fdf0b8
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 05d2478f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -134,7 +134,6 @@ static int hw_ep_flush(struct ci13xxx *ci, int num, int dir)
 */
static int hw_ep_disable(struct ci13xxx *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;