Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 249f8494 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qcom: clock: Allow enable always on clocks that are not rate settable"

parents e4e6b6a6 f6719420
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -147,7 +147,6 @@ General Optional Properties available to any Clock Subnode

- qcom,always-on:	Boolean.
			Enable a clock at boot, and leave it on all the time.
			Requires qcom,config-rate to be set.

mmssnoc_axi: mmssnoc_axi {
	qcom,clk-flags = <0x1000>;
+1 −1
Original line number Diff line number Diff line
@@ -777,7 +777,7 @@ static int __handoff_clk(struct clk *clk)
	if (clk->init_rate && clk_set_rate(clk, clk->init_rate))
		pr_err("failed to set an init rate of %lu on %s\n",
			clk->init_rate, clk->dbg_name);
	if (clk->always_on && clk->init_rate && clk_prepare_enable(clk))
	if (clk->always_on && clk_prepare_enable(clk))
		pr_err("failed to enable always-on clock %s\n",
			clk->dbg_name);

+4 −3
Original line number Diff line number Diff line
@@ -371,8 +371,11 @@ static int generic_clk_parse_init_config(struct device *dev, struct clk *c,
{
	int rc;
	u32 temp;
	char *name = "qcom,config-rate";
	char *name = "qcom,always-on";

	c->always_on = of_property_read_bool(np, name);

	name = "qcom,config-rate";
	/* This property is optional */
	if (!of_find_property(np, name, NULL))
		return 0;
@@ -384,8 +387,6 @@ static int generic_clk_parse_init_config(struct device *dev, struct clk *c,
	}
	c->init_rate = temp;

	name = "qcom,always-on";
	c->always_on = of_property_read_bool(np, name);
	return rc;
}