Skip to content

Commit b4f3d5f

Browse files
smaeuljernejsk
authored andcommitted
clk: sunxi-ng: sun6i-rtc: Mark rtc-32k as critical
Because some newer hardware variants have multiple possible parents for the RTC's timekeeping clock, this driver models it as a "rtc-32k" clock. However, it does not add any consumer for this clock. This causes the common clock framework to disable it, preventing RTC time access. Since the RTC's timekeeping clock should always be enabled, regardless of which drivers are loaded, let's mark this clock as critical instead of adding a consumer in the RTC driver. Fixes: d91612d ("clk: sunxi-ng: Add support for the sun6i RTC clocks") Signed-off-by: Samuel Holland <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Signed-off-by: Jernej Skrabec <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c887bdc commit b4f3d5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/sunxi-ng/ccu-sun6i-rtc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ static struct clk_init_data rtc_32k_init_data = {
241241
.ops = &ccu_mux_ops,
242242
.parent_hws = rtc_32k_parents,
243243
.num_parents = ARRAY_SIZE(rtc_32k_parents), /* updated during probe */
244+
.flags = CLK_IS_CRITICAL,
244245
};
245246

246247
static struct ccu_mux rtc_32k_clk = {

0 commit comments

Comments
 (0)