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

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

usb: dwc3: gadget: Remove dev_WARN_ONCE in dwc3_gadget_ep_disable



In case of usb bus suspend at the time of disconnect, rmnet function
suspend disables the endpoint. Same endpoint gets disabled again as
result of handling gadget driver disconnect. This generates warning
message and dumps the call stack. This may cause message flooding
as a result of multiple usb plug in/plug out. Hence replace
dev_WARN_ONCE with dev_dbg and log this event in debug buffer.

CRs-Fixed: 743899
Change-Id: I64f0f5b15cc5d9185e415f0b26e276e111c885ec
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent f1a9f6d4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -808,8 +808,8 @@ static int dwc3_gadget_ep_disable(struct usb_ep *ep)
	dwc = dep->dwc;

	if (!(dep->flags & DWC3_EP_ENABLED)) {
		dev_WARN_ONCE(dwc->dev, true, "%s is already disabled\n",
				dep->name);
		dev_dbg(dwc->dev, "%s is already disabled\n", dep->name);
		dbg_event(dep->number, "ALRDY DISABLED", dep->flags);
		return 0;
	}