drm/mediatek: reduce the hbp and hfp for phy timing
authorJitao Shi <jitao.shi@mediatek.com>
Fri, 13 Dec 2019 09:52:15 +0000 (17:52 +0800)
committerCK Hu <ck.hu@mediatek.com>
Tue, 17 Dec 2019 02:23:43 +0000 (10:23 +0800)
commite18e0f6b7c8f220774dd68965e8a9b046905acc8
tree845c4a9f8fdef303c4d0784e32c5c120703cef92
parent92c17f6043647652e1f4a772636e4288d4ecea3e
drm/mediatek: reduce the hbp and hfp for phy timing

There are some extra data transfer in dsi.
ex. LPX, hs_prepare, hs_zero, hs_exit and the sof/eof of dsi packet.
This signal will enlarge the line time. So the real frame on dsi bus
will be lower than calc by video timing.

So dsi driver reduces the hbp and hfp to keep the line time.

Fixes: 7a5bc4e22ecf ("drm/mediatek: change the dsi phytiming calculate method")
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_dsi.c