drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp
authorJitao Shi <jitao.shi@mediatek.com>
Mon, 17 Aug 2020 13:06:40 +0000 (21:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 10:59:54 +0000 (12:59 +0200)
commit6d035d5e2c5be04d83a0c3454f78eb43d78256a6
tree3856719497a4dabe1820c39973c5ee50624cc096
parenteb6acd695420e6845a6ccd079f98a8dd91a9e7c4
drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp

[ Upstream commit 35bf948f1edbf507f6e57e0879fa6ea36d2d2930 ]

horizontal_backporch_byte should be hbp * bpp - hbp extra bytes.
So remove the wrong subtraction 10.

Fixes: 7a5bc4e22ecf ("drm/mediatek: change the dsi phytiming calculate method")
Signed-off-by: Jitao Shi <jitao.shi@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