linux/drivers/media/platform/soc_camera
Guennadi Liakhovetski 40f075330a [media] V4L2: soc-camera: work around unbalanced calls to .s_power()
Some non soc-camera drivers, e.g. em28xx, use subdevice drivers, originally
written for soc-camera, which use soc_camera_power_on() and
soc_camera_power_off() helpers to implement their .s_power() methods. Those
helpers in turn can enable and disable a clock, if it is supplied to them
as a parameter. This works well when camera host drivers balance their
calls to subdevices' .s_power() methods. However, some such drivers fail to
do that, which leads to unbalanced calls to v4l2_clk_enable() /
v4l2_clk_disable(), which then in turn produce kernel warnings. Such
behaviour is wrong and should be fixed, however, sometimes it is difficult,
because some of those drivers are rather old and use lots of subdevices,
which all should be tested after such a fix. To support such drivers this
patch adds a work-around, allowing host drivers or platforms to set a flag,
in which case soc-camera helpers will only enable the clock, if it is
disabled, and disable it only once on the first call to .s_power(0).

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-10-31 04:38:40 -02:00
..
Kconfig [media] V4L2: soc_camera: Renesas R-Car VIN driver 2013-08-18 09:01:10 -03:00
Makefile [media] V4L2: soc_camera: Renesas R-Car VIN driver 2013-08-18 09:01:10 -03:00
atmel-isi.c [media] atmel-isi: move interface activation and deactivation to clock callbacks 2013-06-21 15:44:23 -03:00
mx1_camera.c [media] mx1-camera: move interface activation and deactivation to clock callbacks 2013-06-21 15:45:20 -03:00
mx2_camera.c [media] mx2-camera: move interface activation and deactivation to clock callbacks 2013-06-21 15:45:06 -03:00
mx3_camera.c [media] V4L2: mx3_camera: add support for asynchronous subdevice registration 2013-08-18 09:06:37 -03:00
omap1_camera.c [media] omap1-camera: move interface activation and deactivation to clock callbacks 2013-06-21 15:38:22 -03:00
pxa_camera.c [media] pxa-camera: move interface activation and deactivation to clock callbacks 2013-06-21 15:36:21 -03:00
rcar_vin.c [media] V4L2: soc_camera: Renesas R-Car VIN driver 2013-08-18 09:01:10 -03:00
sh_mobile_ceu_camera.c sh_mobile_ceu_camera: Fix a compilation warning 2013-08-18 09:36:03 -03:00
sh_mobile_csi2.c [media] sh_mobile_ceu_camera: add asynchronous subdevice probing support 2013-06-21 16:35:53 -03:00
soc_camera.c [media] V4L2: soc-camera: work around unbalanced calls to .s_power() 2013-10-31 04:38:40 -02:00
soc_camera_platform.c [media] soc-camera: switch I2C subdevice drivers to use v4l2-clk 2013-06-21 16:32:36 -03:00
soc_mediabus.c [media] soc-camera: fix typos in the default format-conversion table 2013-04-14 20:15:43 -03:00
soc_scale_crop.c [media] V4L2: soc-camera: remove several CEU references in the generic scaler 2013-06-28 15:03:38 -03:00
soc_scale_crop.h [media] V4L2: soc-camera: move generic functions into a separate file 2013-06-28 15:03:16 -03:00