]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/rockchip: vop2: Add delay between poll registers
authorAndy Yan <andy.yan@rock-chips.com>
Fri, 18 Jul 2025 06:41:13 +0000 (14:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:14 +0000 (11:21 +0100)
commit47244c00bc5456d57c2e4d2d82ab4e52adf050cc
tree9f9f69454c5edc78075ca2fedba99284e1926b54
parentd6ea0b7394a443fb6ddd1a3619ccc2f0781a900c
drm/rockchip: vop2: Add delay between poll registers

[ Upstream commit 9fae82450d8a5f9c8fa016cd15186e975609b2ac ]

According to the implementation of read_poll_timeout_atomic, if the
delay time is 0, it will only use a simple loop based on timeout_us to
decrement the count. Therefore, the final timeout time will differ
significantly from the set timeout time. So, here we set a specific
delay time to ensure that the calculation of the timeout duration
is accurate.

Fixes: 3e89a8c68354 ("drm/rockchip: vop2: Fix the update of LAYER/PORT select registers when there are multi display output on rk3588/rk3568")
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20250718064120.8811-1-andyshrk@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/rockchip/rockchip_vop2_reg.c