]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/panel: raydium-rm67200: Move initialization from enable() to prepare stage
authorAndy Yan <andy.yan@rock-chips.com>
Wed, 18 Jun 2025 09:15:20 +0000 (17:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:14 +0000 (18:41 +0200)
commit835a18ada0a7862302b120d47dd7231b15d754ca
treea65f1f4cc9a4887c513d8dbd452de6af4ff54c2d
parent84ca5632b8d05d1c2e25604d1d63434b2fb61c85
drm/panel: raydium-rm67200: Move initialization from enable() to prepare stage

[ Upstream commit 691674a282bdbf8f8bce4094369a2d1e4b5645e9 ]

The DSI host has different modes in prepare() and enable() functions,
prepare() is in LP command mode and enable() is in HS video mode.

>From our experience, generally the initialization sequence needs to be
sent in the LP command mode.

Move the setup init function from enable() to prepare() to fix a display
shift on rk3568 evb.

Tested on rk3568/rk3576/rk3588 EVB.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250618091520.691590-1-andyshrk@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/panel/panel-raydium-rm67200.c