WSL2-Linux-Kernel/drivers/media/i2c/adv748x
Niklas Söderlund 07611f9e44 media: adv748x: afe: Select input port when initializing AFE
[ Upstream commit 23ddb85daf ]

When moving the input selection to adv748x_reset() it was missed that
during probe the device is reset _before_ the initialization and parsing
of DT by the AFE subdevice. This can lead to the wrong input port (in
case it's not port 0) being selected until the device is reset for the
first time.

Fix this by restoring the call to adv748x_afe_s_input() in the AFE
initialization while also keeping it in the adv748x_reset().

Fixes: c30ed81afe ("media: adv748x: afe: Select input port when device is reset")
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:14:06 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
adv748x-afe.c media: adv748x: afe: Select input port when initializing AFE 2022-12-31 13:14:06 +01:00
adv748x-core.c media: adv748x: Configure device when resuming from sleep 2020-12-03 07:48:14 +01:00
adv748x-csi2.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
adv748x-hdmi.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
adv748x.h media: media/i2c: fix kerneldoc issues for media i2c headers 2021-03-22 10:23:43 +01:00