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

Commit 610e9488 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "coresight: byte-cntr: Add ETR status check in bypass notifier"

parents 506fae20 e97e4f01
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -630,6 +630,11 @@ void usb_bypass_notifier(void *priv, unsigned int event,

	switch (event) {
	case USB_QDSS_CONNECT:
		if (tmcdrvdata->mode == CS_MODE_DISABLED) {
			dev_err_ratelimited(&tmcdrvdata->csdev->dev,
			 "%s: ETR is disabled.\n", __func__);
			return;
		}
		ret = usb_bypass_start(drvdata);
		if (ret < 0)
			return;