]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: platform: exynos4-is: Add hardware sync wait to fimc_is_hw_change_mode()
authorWentao Liang <vulab@iscas.ac.cn>
Tue, 22 Apr 2025 02:13:45 +0000 (10:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:30 +0000 (11:05 +0100)
commitbb97dfab7615fea97322b8a6131546e80f878a69
treea4b81ee53ec017c5338975ebb560ebd9bdce646d
parent7a209e4b6b2a93ed609e19d280cefafc02f14f0a
media: platform: exynos4-is: Add hardware sync wait to fimc_is_hw_change_mode()

[ Upstream commit bd9f6ce7d512fa21249415c16af801a4ed5d97b6 ]

In fimc_is_hw_change_mode(), the function changes camera modes without
waiting for hardware completion, risking corrupted data or system hangs
if subsequent operations proceed before the hardware is ready.

Add fimc_is_hw_wait_intmsr0_intmsd0() after mode configuration, ensuring
hardware state synchronization and stable interrupt handling.

Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/exynos4-is/fimc-is-regs.c