mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-16 09:56:41 +07:00
drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp
horizontal_backporch_byte should be hbp * bpp - hbp extra bytes.
So remove the wrong subtraction 10.
Fixes: 7a5bc4e22e
("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>
This commit is contained in:
parent
9123e3a74e
commit
35bf948f1e
@ -466,14 +466,13 @@ static void mtk_dsi_config_vdo_timing(struct mtk_dsi *dsi)
|
|||||||
horizontal_sync_active_byte = (vm->hsync_len * dsi_tmp_buf_bpp - 10);
|
horizontal_sync_active_byte = (vm->hsync_len * dsi_tmp_buf_bpp - 10);
|
||||||
|
|
||||||
if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE)
|
if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE)
|
||||||
horizontal_backporch_byte =
|
horizontal_backporch_byte = vm->hback_porch * dsi_tmp_buf_bpp;
|
||||||
(vm->hback_porch * dsi_tmp_buf_bpp - 10);
|
|
||||||
else
|
else
|
||||||
horizontal_backporch_byte = ((vm->hback_porch + vm->hsync_len) *
|
horizontal_backporch_byte = (vm->hback_porch + vm->hsync_len) *
|
||||||
dsi_tmp_buf_bpp - 10);
|
dsi_tmp_buf_bpp;
|
||||||
|
|
||||||
data_phy_cycles = timing->lpx + timing->da_hs_prepare +
|
data_phy_cycles = timing->lpx + timing->da_hs_prepare +
|
||||||
timing->da_hs_zero + timing->da_hs_exit + 3;
|
timing->da_hs_zero + timing->da_hs_exit;
|
||||||
|
|
||||||
if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) {
|
if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) {
|
||||||
if ((vm->hfront_porch + vm->hback_porch) * dsi_tmp_buf_bpp >
|
if ((vm->hfront_porch + vm->hback_porch) * dsi_tmp_buf_bpp >
|
||||||
|
Loading…
Reference in New Issue
Block a user