summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-07-22 20:19:04 -0700
committerYe Li <ye.li@nxp.com>2022-04-06 18:03:51 +0800
commitabc8702772e65fbed0a29a3f62ad5310cf3126e3 (patch)
tree0bb2f5f12801a85010c44c107be03a1f6cafa9e3
parent1ecdf3325dcbf18896eff27a89987c7a00a812ef (diff)
MLK-24437-2 video: nw_dsi_imx: Fix to poll IRQ status register
When polling the packet transfer done, should read the IRQ status register not PKT status register. The IRQ status register is cleared by read while PKT status register won't clear. Also remove 10ms delay after changed to IRQ status register. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 1c48a938cdb5b6b3e4af8a2cfd8a39ea8a427ba4) (cherry picked from commit e6d65f6d5836355fff2f1db44165206c22789db0) (cherry picked from commit 4139cd8f7792769dc04890f484a7544b91033cc5) (cherry picked from commit c8aa98d8fdcf0a2f6cabb9dabfead1680b869ff8)
-rw-r--r--drivers/video/imx/mipi_dsi_northwest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/imx/mipi_dsi_northwest.c b/drivers/video/imx/mipi_dsi_northwest.c
index db05fa04aa..399fd8f9c8 100644
--- a/drivers/video/imx/mipi_dsi_northwest.c
+++ b/drivers/video/imx/mipi_dsi_northwest.c
@@ -633,7 +633,7 @@ static int wait_for_pkt_done(struct mipi_dsi_northwest_info *mipi_dsi, unsigned
uint32_t irq_status;
do {
- irq_status = readl(mipi_dsi->mmio_base + HOST_PKT_STATUS);
+ irq_status = readl(mipi_dsi->mmio_base + HOST_IRQ_STATUS);
if (irq_status & HOST_IRQ_STATUS_TX_PKT_DONE)
return timeout;
@@ -669,7 +669,6 @@ static int mipi_dsi_pkt_write(struct mipi_dsi_northwest_info *mipi_dsi,
printf("wait tx done timeout!\n");
return -ETIMEDOUT;
}
- mdelay(10);
return 0;
}