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

Commit be4b1819 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

dwc3: gadget: Remove WARN_ON_ONCE() from dwc3_stop_active_transfer()



End transfer command can timeout when block reset is in progress
while handling erratic events. This dumps call stack after printing
error message for command timeout which is benign. Remove this
WARN_ON_ONCE() as error message is sufficient to debug any command
timeout.

CRs-Fixed: 767409
Change-Id: I04b39a44f78dd3b127af976407fec04542df9bdd
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 6c644c0f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2784,7 +2784,6 @@ static void dwc3_stop_active_transfer(struct dwc3 *dwc, u32 epnum)
	cmd |= DWC3_DEPCMD_PARAM(dep->resource_index);
	memset(&params, 0, sizeof(params));
	ret = dwc3_send_gadget_ep_cmd(dwc, dep->number, cmd, &params);
	WARN_ON_ONCE(ret);
	dep->resource_index = 0;
	dep->flags &= ~DWC3_EP_BUSY;
	udelay(100);