Explorar o código

disp: msm: dsi: Use pr_err_ratelimited to log PHY contention error

Replace DSI_CTRL_ERROR with pr_err_ratelimited to reduce PHY contention
logging errors, as excessive logging in kernel can lead to system crash.

Change-Id: Ibd81a0e852a73186144ebefc8a1c09020a6e74f0
Signed-off-by: Rohith Iyer <[email protected]>
Rohith Iyer %!s(int64=2) %!d(string=hai) anos
pai
achega
446c1b69b5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      msm/dsi/dsi_ctrl.c

+ 2 - 2
msm/dsi/dsi_ctrl.c

@@ -2728,8 +2728,8 @@ static void dsi_ctrl_handle_error_status(struct dsi_ctrl *dsi_ctrl,
 
 	/* DTLN PHY error */
 	if (error & 0x3000E00)
-		DSI_CTRL_ERR(dsi_ctrl, "dsi PHY contention error: 0x%lx\n",
-				error);
+		pr_err_ratelimited("[%s] dsi PHY contention error: 0x%lx\n",
+				dsi_ctrl->name, error);
 
 	/* ignore TX timeout if blpp_lp11 is disabled */
 	if (dsi_ctrl->host_config.panel_mode == DSI_OP_VIDEO_MODE &&