Browse Source

smcinvoke: Print retry_count value

This is important to estimate how long each clients are waiting
for secure side.

Signed-off-by: Smita Ghosh <[email protected]>
Smita Ghosh 2 years ago
parent
commit
81cf72e4ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      smcinvoke/smcinvoke.c

+ 1 - 1
smcinvoke/smcinvoke.c

@@ -1646,7 +1646,7 @@ static int prepare_send_scm_msg(const uint8_t *in_buf, phys_addr_t in_paddr,
 					&response_type, &data, in_shm, out_shm);
 
 			if (ret == -EBUSY) {
-				pr_err("Secure side is busy,will retry after 30 ms\n");
+				pr_err("Secure side is busy,will retry after 30 ms, retry_count = %d",retry_count);
 				mutex_unlock(&g_smcinvoke_lock);
 				msleep(SMCINVOKE_SCM_EBUSY_WAIT_MS);
 				mutex_lock(&g_smcinvoke_lock);