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

Commit a4f43601 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Gerrit - the friendly Code Review server
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>
parent 1a5123de
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2970,6 +2970,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 */