From: Sylwester Nawrocki Date: Fri, 31 May 2013 11:40:36 +0000 (-0300) Subject: [media] exynos4-is: Ensure fimc-is clocks are not enabled until properly configured X-Git-Tag: v3.10-rc7~29^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4155d7d5b2c4e82238d629c451f7c27c9f37d9c;p=pandora-kernel.git [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 Signed-off-by: Kyunmin Park Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed