]> www.infradead.org Git - users/jedix/linux-maple.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)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 25 Apr 2025 13:14:37 +0000 (15:14 +0200)
commitbd9f6ce7d512fa21249415c16af801a4ed5d97b6
tree1b4d7df6b4a20c7bfe089b1973b30d67a9ee43c3
parenta93f42c77100c3ef03529cdc558ec93bc8f49871
media: platform: exynos4-is: Add hardware sync wait to fimc_is_hw_change_mode()

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>
drivers/media/platform/samsung/exynos4-is/fimc-is-regs.c