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

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

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

parents 7c93753e 89ac6c47
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -517,6 +517,13 @@ void usb_bypass_notifier(void *priv, unsigned int event,
	if (!drvdata)
	if (!drvdata)
		return;
		return;


	if (tmcdrvdata->out_mode != TMC_ETR_OUT_MODE_USB
				|| tmcdrvdata->mode == CS_MODE_DISABLED) {
		dev_err(&tmcdrvdata->csdev->dev,
		"%s: ETR is not USB mode, or ETR is disabled.\n", __func__);
		return;
	}

	switch (event) {
	switch (event) {
	case USB_QDSS_CONNECT:
	case USB_QDSS_CONNECT:
		usb_qdss_alloc_req(ch, USB_BUF_NUM);
		usb_qdss_alloc_req(ch, USB_BUF_NUM);