clk: samsung: Mark top ISP and CAM clocks on Exynos542x as critical
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 6 May 2020 13:26:58 +0000 (15:26 +0200)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 13 May 2020 10:40:50 +0000 (12:40 +0200)
commite47bd937e602bb4379546095d1bd0b9871fa60c2
tree44d37159e11b364c4ce6685d9dd33e5b84279a84
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
clk: samsung: Mark top ISP and CAM clocks on Exynos542x as critical

The TOP 'aclk*_isp', 'aclk550_cam', 'gscl_wa' and 'gscl_wb' clocks must
be kept enabled all the time to allow proper access to power management
control for the ISP and CAM power domains. The last two clocks, although
related to GScaler device and GSCL power domain, provides also the
I_WRAP_CLK signal to MIPI CSIS0/1 devices, which are a part of CAM power
domain and are needed for proper power on/off sequence.

Currently there are no drivers for the devices, which are part of CAM and
ISP power domains yet. This patch only fixes the race between disabling
the unused power domains and disabling unused clocks, which randomly
resulted in the following error during boot:

Power domain CAM disable failed
Power domain ISP disable failed

Fixes: 318fa46cc60d ("clk/samsung: exynos542x: mark some clocks as critical")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/clk/samsung/clk-exynos5420.c