summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/marvell-ccic
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-05-31 08:40:36 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-08 19:53:16 -0300
commitb4155d7d5b2c4e82238d629c451f7c27c9f37d9c (patch)
tree8ac568ea27b7786ddd68bf408fb2ed6e7b1d6aa2 /drivers/media/platform/marvell-ccic
parent3cf138a6393d4ae2aeabce4c4b776d7d15cce69b (diff)
[media] exynos4-is: Ensure fimc-is clocks are not enabled until properly configured
Use clk_prepare_enable/clk_unprepare_disable instead of preparing the clocks during the driver initalization and then using just clk_disable/ clk_enable. The clock framework doesn't guarantee a clock will not get enabled during e.g. clk_set_parent if clk_prepare has been called on it. So we ensure clk_prepare() is called only when it is safe to enable the clocks, i.e. the parent clocks and the clocks' frequencies are set. It must be ensured the FIMC-IS clocks have proper frequencies before they are enabled, otherwise the whole system will hang. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyunmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/marvell-ccic')
0 files changed, 0 insertions, 0 deletions