mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Skip BM ulog request if bm debug is disabled
Skip BM ulog request if bm ulog debug is disabled to avoid adsp glink request race with other adsp glink clients l(CR) qti_battery_charger and qti_glink_charger. Change-Id: I97d2b6bac91b06a8434f0424a602936f0ce1e971 Signed-off-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-on: https://gerrit.mot.com/2362826 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
d45b34be1e
commit
c1d23c2a08
1 changed files with 20 additions and 0 deletions
|
|
@ -215,6 +215,11 @@ int bm_ulog_get_log(char *buf, u32 size)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (*bmdev->debug_enabled == false) {
|
||||
pr_debug("BM ulog has not enabled yet\n");
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
if (!buf) {
|
||||
pr_err("BM ulog invalid buf=%p\n", buf);
|
||||
return -EINVAL;
|
||||
|
|
@ -249,6 +254,11 @@ int bm_ulog_get_mask_log(enum bm_ulog_category_bitmap categories,
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (*bmdev->debug_enabled == false) {
|
||||
pr_debug("BM ulog has not enabled yet\n");
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
if (!buf) {
|
||||
pr_err("BM ulog invalid buf=%p\n", buf);
|
||||
return -EINVAL;
|
||||
|
|
@ -332,6 +342,11 @@ int bm_ulog_print_log(u32 size)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (*bmdev->debug_enabled == false) {
|
||||
pr_debug("BM ulog has not enabled yet\n");
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
if (!size || size > MAX_ULOG_READ_BUFFER_SIZE) {
|
||||
pr_err("BM ulog invalid size=%d\n", size);
|
||||
return -EINVAL;
|
||||
|
|
@ -360,6 +375,11 @@ int bm_ulog_print_mask_log(enum bm_ulog_category_bitmap categories,
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (*bmdev->debug_enabled == false) {
|
||||
pr_debug("BM ulog has not enabled yet\n");
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
if (!size || size > MAX_ULOG_READ_BUFFER_SIZE) {
|
||||
pr_err("BM ulog invalid size=%d\n", size);
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue