media: adv748x: afe: Select input port when device is reset
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sun, 22 Nov 2020 16:36:35 +0000 (17:36 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 06:47:23 +0000 (07:47 +0100)
commitc30ed81afe890eb021cb4737fa82c127817b5e69
tree99814ee2168478e4f5784fd7192ec82959c9ac7e
parent4deff542d70aa8ffe83cf6de0e14b4e0cb24b95b
media: adv748x: afe: Select input port when device is reset

It's not enough to select the AFE input port during probe: it also needs
to be set when the device is reset. Move the port selection to
adv748x_reset() that is called during probe and when the device needs to
be reset.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/adv748x/adv748x-afe.c
drivers/media/i2c/adv748x/adv748x-core.c
drivers/media/i2c/adv748x/adv748x.h