Browse Source

msm: eva: Fix typo in DSP debug mask check

Don't ingore memory debugging level.

Change-Id: I2d1df82c2c7ba1741e373ab6cd69635b5f54215e
Signed-off-by: George Shen <[email protected]>
George Shen 3 years ago
parent
commit
0780657491
1 changed files with 1 additions and 1 deletions
  1. 1 1
      msm/eva/msm_cvp_debug.c

+ 1 - 1
msm/eva/msm_cvp_debug.c

@@ -337,7 +337,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(clk_rate_fops, _clk_rate_get, _clk_rate_set, "%llu\n");
 static int _dsp_dbg_set(void *data, u64 val)
 {
 
-	if (val == 0 || val > (1 << EVA_MEM_DEBUG_ON)) {
+	if (val == 0 || val >= (1 << (EVA_MEM_DEBUG_ON + 1))) {
 		dprintk(CVP_WARN, "DSP debug mask cannot be %llx\n", val);
 		return 0;
 	}