“f6b6036e56ca17378dd0294b684db623abd6a901”上不存在“drivers/gpu/drm/omapdrm/omap_drv.h”
提交 b4f3d5f0 编写于 作者: S Samuel Holland 提交者: Jernej Skrabec

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: d91612d7 ("clk: sunxi-ng: Add support for the sun6i RTC clocks")
Signed-off-by: NSamuel Holland <samuel@sholland.org>
Acked-by: NJernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: NJernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220411050100.40964-1-samuel@sholland.org
上级 c887bdc4
...@@ -241,6 +241,7 @@ static struct clk_init_data rtc_32k_init_data = { ...@@ -241,6 +241,7 @@ static struct clk_init_data rtc_32k_init_data = {
.ops = &ccu_mux_ops, .ops = &ccu_mux_ops,
.parent_hws = rtc_32k_parents, .parent_hws = rtc_32k_parents,
.num_parents = ARRAY_SIZE(rtc_32k_parents), /* updated during probe */ .num_parents = ARRAY_SIZE(rtc_32k_parents), /* updated during probe */
.flags = CLK_IS_CRITICAL,
}; };
static struct ccu_mux rtc_32k_clk = { static struct ccu_mux rtc_32k_clk = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册