]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: dsi: Reduce the time of dsi from LP11 to sending cmd
authorXinlei Lee <xinlei.lee@mediatek.com>
Tue, 10 Jan 2023 05:54:51 +0000 (13:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:17 +0000 (09:33 +0100)
commitb061671f22cec7f087220ca40a38109b01e0b3fa
tree61f8f01c72c7ca4e3e9ee68a7b0b65ec997175af
parent65c63e96a9d250283ed970cea31ee8307a6c9ddf
drm/mediatek: dsi: Reduce the time of dsi from LP11 to sending cmd

[ Upstream commit bf27e58ecf3291520c51aba06adc777b05469cdb ]

According to Figure 16 Turnaround Procedure on page 36 in [1], you
can see the status of LP-00 -> LP10 -> LP11. This state can correspond
to the state of DSI from LP00 -> LP11 in mtk_dsi_lane_ready function
in mtk_dsi.c.

LP-00 -> LP10 -> LP11 takes about 2*TLPX time (refer to [1] page 51
to see that TLPX is 50ns)

The delay at the end of the mtk_dsi_lane_ready function should be
greater than the 2*TLPX specified by the DSI spec, and less than
the time specified by the DSI_RX (generally 6ms to 40ms), to avoid
problems caused by the RX specification

[1]:mipi_D-PHY_specification_v1-1

Fixes: 76d852403a2c ("drm/mediatek: Keep dsi as LP00 before dcs cmds transfer")
Signed-off-by: Xinlei Lee <xinlei.lee@mediatek.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/1673330093-6771-2-git-send-email-xinlei.lee@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_dsi.c