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

Commit 83bfad0d 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 73f4406f 7cdbbb1f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
 *
 * Description: CoreSight Trace Memory Controller driver
 */
@@ -555,6 +555,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;