]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "drm/sun4i: dsi: Change the start delay calculation"
authorIcenowy Zheng <icenowy@aosc.io>
Tue, 1 Oct 2019 08:02:51 +0000 (16:02 +0800)
committerMaxime Ripard <mripard@kernel.org>
Thu, 3 Oct 2019 13:16:44 +0000 (15:16 +0200)
commita1db249c6740df84f7b265058dd78b8b78e7a90c
tree338b9e45419112b359242ff9e940e0bed257e51b
parent20c0d3a885128490c1f9f9b66b882d0632330793
Revert "drm/sun4i: dsi: Change the start delay calculation"

This reverts commit 1ec1079e0565fdf0408506311fb0d5f9e93d2609.

The original commit adds a start parameter to the calculation of the
start delay according to some old BSP versions from Allwinner. However,
there're two ways to add this delay -- add it in DSI controller or add
it in the TCON. Add it in both controllers won't work.

The code before this commit is picked from new versions of BSP kernel,
which has a comment for the 1 that says "put start_delay to tcon". By
checking the sun4i_tcon0_mode_set_cpu() in sun4i_tcon driver, it has
already added this delay, so we shouldn't repeat to add the delay in DSI
controller, otherwise the timing won't match.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191001080253.6135-2-icenowy@aosc.io
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c