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

Commit 9a0f0fb7 authored by Gilad Broner's avatar Gilad Broner Committed by Gerrit - the friendly Code Review server
Browse files

usb: dwc3: remove debug event prints for endpoint events



Endpoint events can be received at a high rate, in which case
the debug prints increase cpu usage.
The existing counter mechanism is much more lightweight and provides
similar info.

Change-Id: If4e61bcf4cc47639265028b34c452d8a6caf2b6d
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent e7c6d026
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -2307,7 +2307,6 @@ static void dwc3_endpoint_interrupt(struct dwc3 *dwc,
			return;
		}

		dbg_event(dep->number, "XFRCOMP", 0);
		dwc3_endpoint_transfer_complete(dwc, dep, event, 1);
		break;
	case DWC3_DEPEVT_XFERINPROGRESS:
@@ -2318,11 +2317,9 @@ static void dwc3_endpoint_interrupt(struct dwc3 *dwc,
			return;
		}

		dbg_event(dep->number, "XFRPROG", 0);
		dwc3_endpoint_transfer_complete(dwc, dep, event, 0);
		break;
	case DWC3_DEPEVT_XFERNOTREADY:
		dbg_event(dep->number, "XFRNRDY", 0);
		dep->dbg_ep_events.xfernotready++;
		if (usb_endpoint_xfer_isoc(dep->endpoint.desc)) {
			dwc3_gadget_start_isoc(dwc, dep, event);
@@ -2338,8 +2335,6 @@ static void dwc3_endpoint_interrupt(struct dwc3 *dwc,
			ret = __dwc3_gadget_kick_transfer(dep, 0, 1);
			if (!ret || ret == -EBUSY)
				return;
			else
				dbg_event(dep->number, "QUEUE", ret);

			dev_dbg(dwc->dev, "%s: failed to kick transfers\n",
					dep->name);