diff options
author | Mohit Aggarwal <maggarwa@codeaurora.org> | 2017-05-24 14:50:52 +0530 |
---|---|---|
committer | Mohit Aggarwal <maggarwa@codeaurora.org> | 2017-05-24 15:14:26 +0530 |
commit | 7687d76d9245a00d77e633b557abe85963529294 (patch) | |
tree | 04abe8b792de4deb08a50a9533f1cee9d23b96d1 /drivers/char/diag/diagchar.h | |
parent | 60be71604a84d2e047215cb702d6324379a353bb (diff) |
diag: Enable masks for user pd memory device session
Currently, masks are not getting enabled on peripherals
when launching user pd memory device session. The patch
takes care to enable the masks properly.
CRs-Fixed: 2051486
Change-Id: I8aa38310f5ec20a41aa0a0e123033d6c8cb38d48
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
Diffstat (limited to 'drivers/char/diag/diagchar.h')
-rw-r--r-- | drivers/char/diag/diagchar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/diag/diagchar.h b/drivers/char/diag/diagchar.h index 4047a2c42bb7..66a5791ec360 100644 --- a/drivers/char/diag/diagchar.h +++ b/drivers/char/diag/diagchar.h @@ -235,6 +235,10 @@ #define MD_PERIPHERAL_MASK(x) (1 << x) +#define MD_PERIPHERAL_PD_MASK(x) \ + ((x == PERIPHERAL_MODEM) ? (1 << UPD_WLAN) : \ + ((x == PERIPHERAL_LPASS) ? (1 << UPD_AUDIO | 1 << UPD_SENSORS) : 0))\ + /* * Number of stm processors includes all the peripherals and * apps.Added 1 below to indicate apps @@ -673,6 +677,7 @@ void diag_cmd_remove_reg_by_proc(int proc); int diag_cmd_chk_polling(struct diag_cmd_reg_entry_t *entry); int diag_mask_param(void); void diag_clear_masks(struct diag_md_session_t *info); +uint8_t diag_mask_to_pd_value(uint32_t peripheral_mask); void diag_record_stats(int type, int flag); |