提交 5bb62250 编写于 作者: P Peng Fan 提交者: Yang Yingliang

firmware: arm_scmi: update rate_discrete in clock_describe_rates_get

[ Upstream commit c0759b9b5d411ab27c479125cee9bae391a96436 ]

The boolean rate_discrete needs to be assigned to clk->rate_discrete,
so that clock driver can distinguish between the continuous range and
discrete rates. It uses this in scmi_clk_round_rate could get the
rounded value if it's a continuous range.

Fixes: 5f6c6430 ("firmware: arm_scmi: add initial support for clock protocol")
Signed-off-by: NPeng Fan <peng.fan@nxp.com>
[sudeep.holla: updated commit message]
Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 9d1a7396
...@@ -185,6 +185,8 @@ scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id, ...@@ -185,6 +185,8 @@ scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id,
if (rate_discrete) if (rate_discrete)
clk->list.num_rates = tot_rate_cnt; clk->list.num_rates = tot_rate_cnt;
clk->rate_discrete = rate_discrete;
err: err:
scmi_xfer_put(handle, t); scmi_xfer_put(handle, t);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册