Browse Source

msm: camera: reqmgr: Change warn logs to rate limited

In notify trigger and if link state isn't ready, it may
print excessive log which causes watchdog bite.

CRs-Fixed: 3031599
Change-Id: I758dcb26d9d110b0ba080e31f87e1fcafc6fd0e8
Signed-off-by: Depeng Shao <[email protected]>
Depeng Shao 3 năm trước cách đây
mục cha
commit
b5d455f995
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/cam_req_mgr/cam_req_mgr_core.c

+ 1 - 1
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -3866,7 +3866,7 @@ static int cam_req_mgr_cb_notify_trigger(
 
 	spin_lock_bh(&link->link_state_spin_lock);
 	if (link->state < CAM_CRM_LINK_STATE_READY) {
-		CAM_WARN(CAM_CRM, "invalid link state:%d", link->state);
+		CAM_WARN_RATE_LIMIT(CAM_CRM, "invalid link state:%d", link->state);
 		spin_unlock_bh(&link->link_state_spin_lock);
 		rc = -EPERM;
 		goto end;