From f822ab60e56afd4d1aee504c397319f1dedd52aa Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Wed, 29 Jun 2022 14:18:59 +0800 Subject: [PATCH] rtc: hym8563: Add CLK_IS_CRITICAL for output clock The 32k clock is used for hp timer on RK3588, and it should be always on. Signed-off-by: Finley Xiao Change-Id: Ie28a16308521fadc33ae91c25215f30bd2265f33 --- drivers/rtc/rtc-hym8563.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c index a03b28f2033e..f1c3fb465269 100644 --- a/drivers/rtc/rtc-hym8563.c +++ b/drivers/rtc/rtc-hym8563.c @@ -412,16 +412,10 @@ static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563) struct device_node *node = client->dev.of_node; struct clk *clk; struct clk_init_data init; - int ret; - - ret = i2c_smbus_write_byte_data(client, HYM8563_CLKOUT, - 0); - if (ret < 0) - return ERR_PTR(ret); init.name = "hym8563-clkout"; init.ops = &hym8563_clkout_ops; - init.flags = 0; + init.flags = CLK_IS_CRITICAL; init.parent_names = NULL; init.num_parents = 0; hym8563->clkout_hw.init = &init;