Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ebfb6cc authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

msm: mdss: dsi: ignore error interrupt when mask not set



Ignore handling error interrupt when error intr mask is not set,
as we do not expect it to be generated.

Change-Id: Iabe58f2a67ddbd0c7628fdf2d830568ff0e3b013
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 676c9bc2
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2920,7 +2920,15 @@ static void __dsi_error_counter(struct dsi_err_container *err_container)

void mdss_dsi_error(struct mdss_dsi_ctrl_pdata *ctrl)
{
	u32 intr;
	u32 intr, mask;

	/* Ignore the interrupt if the error intr mask is not set */
	mask = MIPI_INP(ctrl->ctrl_base + 0x0110);
	if (!(mask & DSI_INTR_ERROR_MASK)) {
		pr_debug("%s: Ignore interrupt as error mask not set, 0x%x\n",
				__func__, mask);
		return;
	}

	/* disable dsi error interrupt */
	mdss_dsi_err_intr_ctrl(ctrl, DSI_INTR_ERROR_MASK, 0);