drm/msm/dsi: use pr_err_ratelimited
authorRob Clark <robdclark@gmail.com>
Thu, 7 May 2015 19:19:02 +0000 (15:19 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 14 May 2015 15:50:38 +0000 (11:50 -0400)
When things go badly we can get a lot of these error irqs.  Let's not
DoS the user.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_host.c

index a3ff0e2966047ab6c74d72444c098d79a6245b4a..47a7f00364786973bda365c0e1531dbf20145397 100644 (file)
@@ -1215,7 +1215,7 @@ static void dsi_err_worker(struct work_struct *work)
                container_of(work, struct msm_dsi_host, err_work);
        u32 status = msm_host->err_work_state;
 
-       pr_err("%s: status=%x\n", __func__, status);
+       pr_err_ratelimited("%s: status=%x\n", __func__, status);
        if (status & DSI_ERR_STATE_MDP_FIFO_UNDERFLOW)
                dsi_sw_reset_restore(msm_host);