summaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorDillon Min <dillon.minfei@gmail.com>2021-05-04 07:09:53 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-06-02 11:52:33 +0200
commit24786ccd9c80fdb05494aa4d90fcb8f34295c193 (patch)
tree9fa263a7c1d193030c88dbad9cc5bfbc672295dd /drivers/media/common
parentmedia: ipu3-cio2: Fix reference counting when looping over ACPI devices (diff)
downloadlinux-24786ccd9c80fdb05494aa4d90fcb8f34295c193.tar.xz
linux-24786ccd9c80fdb05494aa4d90fcb8f34295c193.zip
media: i2c: ov2659: Use clk_{prepare_enable,disable_unprepare}() to set xvclk on/off
On some platform(imx6q), xvclk might not switch on in advance, also for power save purpose, xvclk should not be always on. so, add clk_prepare_enable(), clk_disable_unprepare() in driver side to set xvclk on/off at proper stage. Add following changes: - add 'struct clk *clk;' in 'struct ov2659 {}' - enable xvclk in ov2659_power_on() - disable xvclk in ov2659_power_off() Signed-off-by: Dillon Min <dillon.minfei@gmail.com> Acked-by: Lad Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/common')
0 files changed, 0 insertions, 0 deletions