]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: adv7180: Setup controls every time the device is reset
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 28 Aug 2025 16:06:48 +0000 (18:06 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 4 Sep 2025 08:06:13 +0000 (10:06 +0200)
commitdc12a27cd1c954e9a5ac9c0e0fdcbf6e1fa554ee
treeb70e64b8a94fcd76fe3c635019f842c23e61f969
parent6742cc8d7159abf4da9b1817ce8484c0386eb52f
media: adv7180: Setup controls every time the device is reset

The device initialization code resets the whole device, thus the initial
controls set at probe are lost as adv7180_init_controls() are called
before init_device(). Additionally the controls were never restored
after the device where reset coming back from suspend.

Solve this by separate the setup of the controls from the creation of
them, and always set them up when the device is reset.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/adv7180.c