@@ -599,8 +599,11 @@ static int aspeed_g6_clk_probe(struct platform_device *pdev)
for (i = 0; i < ARRAY_SIZE(aspeed_g6_gates); i++) {
const struct aspeed_gate_data *gd = &aspeed_g6_gates[i];
+ unsigned long flags = gd->flags;
u32 gate_flags;
+ of_clk_detect_critical(pdev->dev.of_node, i, &flags);
+
/*
* Special case: the USB port 1 clock (bit 14) is always
* working the opposite way from the other ones.
@@ -609,7 +612,7 @@ static int aspeed_g6_clk_probe(struct platform_device *pdev)
hw = aspeed_g6_clk_hw_register_gate(dev,
gd->name,
gd->parent_name,
- gd->flags,
+ flags,
map,
gd->clock_idx,
gd->reset_idx,
This commit adds critical clock setting logic that applies CLK_IS_CRITICAL flag if it detects 'clock-critical' property in device tree. Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> --- drivers/clk/clk-ast2600.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)