mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "coresight: byte-cntr: Add ETR status check in bypass notifier"
This commit is contained in:
commit
610e9488fb
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue