media: stm32: dcmi: only call s_stream on the source subdev
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 21 Jul 2023 12:03:15 +0000 (14:03 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:36 +0000 (07:58 +0200)
commit525011d84a3f547d0643c10bbfc01d32e26a9963
tree071ce1293cc1f97f573a5b1d76c0db2cab2d348d
parent7d0e95eb820b09ec432ddc5d9b36586de3dc88a3
media: stm32: dcmi: only call s_stream on the source subdev

Avoid calling s_stream on each subdev until reaching the sensor and
instead call s_stream on the source subdev only (which will in turn
do whatever needed to start the stream).

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Reviewed-by: Hugues FRUCHET <hugues.fruchet@foss.st.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/st/stm32/stm32-dcmi.c