]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/mediatek: dsi: Modify horizontal front/back porch byte formula
authorCK Hu <ck.hu@mediatek.com>
Fri, 13 Nov 2020 03:49:07 +0000 (11:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:51:55 +0000 (08:51 +0100)
commit3380224c2f510b6fc03f6e319f7b85d0fed2f039
treef7888488f66218de57ba26336ee347775d4c2fa9
parent9f7adaaa65071fa260210cef0561703f6cae962c
drm/mediatek: dsi: Modify horizontal front/back porch byte formula

[ Upstream commit 487778f8d22fcdebb6436f0a5f96484ffa237b0b ]

In the patch to be fixed, horizontal_backporch_byte become too large
for some panel, so roll back that patch. For small hfp or hbp panel,
using vm->hfront_porch + vm->hback_porch to calculate
horizontal_backporch_byte would make it negtive, so
use horizontal_backporch_byte itself to make it positive.

Fixes: 35bf948f1edb ("drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp")
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Tested-by: Bilal Wasim <bilal.wasim@imgtec.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_dsi.c