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

This commit is contained in:
qctecmdr 2020-06-11 10:59:14 -07:00 • committed by Gerrit - the friendly Code Review server
commit e56575eaad

View file

@ -517,6 +517,13 @@ void usb_bypass_notifier(void *priv, unsigned int event,
if (!drvdata)
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) {
case USB_QDSS_CONNECT:
usb_qdss_alloc_req(ch, USB_BUF_NUM);