]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
V4L/DVB: mt9t031: use runtime pm support to restore ADDRESS_MODE registers
authorValentin Longchamp <valentin.longchamp@epfl.ch>
Tue, 9 Feb 2010 10:59:12 +0000 (07:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:46:21 +0000 (00:46 -0300)
commit535653b1c22c29d4e8f554928efc87fe138f917d
tree68a93e7f63c3cc62b54e2039b0fcb350a10b6b5c
parent4f9fb5ed020324d6c151db34460df572b0fdc491
V4L/DVB: mt9t031: use runtime pm support to restore ADDRESS_MODE registers

If the platform hooks are provided, soc_camera powers off the device
on close and powers it on on open. This resets the ADDRESS_MODE registers
which then can be different to the value the driver has computed for them.

This patch setups runtime pm usage for mt9t031 and uses the resume function
to write the ADDRESS_MODE registers in order to fix the above described
problem.

Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9t031.c