Skip to contentSkip to conversation

firmware: arm_scmi: clock: set rate_discrete

PATCH In review Peng Fan 2 participants 2 messages May 22, 2019 – May 24, 2019 System control & power/management interface (SCPI/SCMI) Message Protocol drivers

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 firmware: arm_scmi: clock: set rate_discrete

The rate_discrete needs to be assigned to clk->rate_discrete, then scmi_clk_round_rate could get the value.

Fixes 5f6c6430e904 ("firmware: arm_scmi: add initial support for clock protocol")
---
 drivers/firmware/arm_scmi/clock.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/firmware/arm_scmi/clock.c +2 -0
index 30fc04e28431..0a194af92438 100644
@@ -185,6 +185,8 @@ scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id,
 	if (rate_discrete)
 		clk->list.num_rates = tot_rate_cnt;
 
+	clk->rate_discrete = rate_discrete;
+
 err:
 	scmi_xfer_put(handle, t);
 	return ret;
Signature · 1 line
2.16.4
#1 lore raw
Quoted 3 lines · Peng Fan

The rate_discrete needs to be assigned to clk->rate_discrete, then scmi_clk_round_rate could get the value.

Thanks for the fix, applied.

Quoted 22 lines
Fixes 5f6c6430e904 ("firmware: arm_scmi: add initial support for clock protocol")
---
 drivers/firmware/arm_scmi/clock.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/firmware/arm_scmi/clock.c +2 -0
index 30fc04e28431..0a194af92438 100644
@@ -185,6 +185,8 @@ scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id,
 	if (rate_discrete)
 		clk->list.num_rates = tot_rate_cnt;
 
+	clk->rate_discrete = rate_discrete;
+
 err:
 	scmi_xfer_put(handle, t);
 	return ret;
Signature · 1 line
2.16.4