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

Commit 4072ee77 authored by Vishnuvardhan Prodduturi's avatar Vishnuvardhan Prodduturi
Browse files

msm: mdss: do not report overflow errors during read commands



During a DSI DMA read command transaction, it is expected to have
DSI FIFO overflow if the read operation duration exceeds one BLLP
line time frame. Make sure not to trigger DSI FIFO overflow recovery
sequence for such cases where DSI FIFO overflow error is masked.

Change-Id: I0762a0f51d580a44cfa24ffac60cc465c241c733
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: default avatarVishnuvardhan Prodduturi <vproddut@codeaurora.org>
parent d1a2e03e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3044,6 +3044,13 @@ static bool mdss_dsi_fifo_status(struct mdss_dsi_ctrl_pdata *ctrl)

		pr_err("%s: status=%x\n", __func__, status);

		/*
		 * if DSI FIFO overflow is masked,
		 * do not report overflow error
		 */
		if (MIPI_INP(base + 0x10c) & 0xf0000)
			status = status & 0xaaaaffff;

		if (status & 0x44440000) {/* DLNx_HS_FIFO_OVERFLOW */
			dsi_send_events(ctrl, DSI_EV_DLNx_FIFO_OVERFLOW, 0);
			/* Ignore FIFO EMPTY when overflow happens */