diff options
author | 2013-05-31 08:40:36 -0300 | |
---|---|---|
committer | 2013-06-08 19:53:16 -0300 | |
commit | b4155d7d5b2c4e82238d629c451f7c27c9f37d9c (patch) | |
tree | 8ac568ea27b7786ddd68bf408fb2ed6e7b1d6aa2 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | [media] exynos4-is: Prevent NULL pointer dereference when firmware isn't loaded (diff) | |
download | linux-dev-b4155d7d5b2c4e82238d629c451f7c27c9f37d9c.tar.xz linux-dev-b4155d7d5b2c4e82238d629c451f7c27c9f37d9c.zip |
[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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions