]> Gentwo Git Trees - linux/.git/commit
media: i2c: dw9719: Fix power on/off sequence
authorVal Packett <val@packett.cool>
Sat, 20 Sep 2025 12:03:47 +0000 (14:03 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 29 Oct 2025 12:47:16 +0000 (13:47 +0100)
commita4b325c23e0453cff1bcec260dfd4bc092a11285
tree3e6e89419a934b8090e6017b980d1a94dbe40701
parent5e18755738632d3c5aaaddd45b76520f78e6d8d4
media: i2c: dw9719: Fix power on/off sequence

The "jiggle" code was not actually expecting failure, which it should
because that's what actually happens when the device wasn't already woken
up by the regulator power-on (i.e. in the case of a shared regulator).

Also, do actually enter the internal suspend mode on shutdown, to save
power in the case of a shared regulator.

Also, wait a bit longer (2x tOPR) on waking up, 1x is not enough at least
on the DW9718S as found on the motorola-nora smartphone.

Signed-off-by: Val Packett <val@packett.cool>
Signed-off-by: André Apitzsch <git@apitzsch.eu>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/dw9719.c