]> git.baikalelectronics.ru Git - 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)
commit4b45526b2e7a19203e584a2712b7c31da03f66e4
tree68a93e7f63c3cc62b54e2039b0fcb350a10b6b5c
parent09dce20632144b20ae2a7dcaf375cea06a375761
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