drm/mediatek: dsi: Correct calculation formula of PHY Timing
authorShuijing Li <shuijing.li@mediatek.com>
Fri, 12 Apr 2024 03:11:39 +0000 (11:11 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 22 Apr 2024 13:40:34 +0000 (13:40 +0000)
commit417d8c47271d5cf1a705e997065873b2a9a36fd4
tree39884383246c70de18d87f2ab849d9764e73a95e
parent8431fff9e0f3fc1c5844cf99a73b49b63ceed481
drm/mediatek: dsi: Correct calculation formula of PHY Timing

This patch correct calculation formula of PHY timing.
The spec define HS-PREPARE should be from 40ns+4*UI(44ns) to
85ns+6*UI(91ns). But current duration is 88ns and is near the boundary.
So this patch make the duration to 64ns so it is near the safe range.

Signed-off-by: Shuijing Li <shuijing.li@mediatek.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240412031208.30688-1-shuijing.li@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dsi.c