diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-05-22 10:15:21 +0000 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2019-06-12 12:29:16 +0100 |
commit | c0759b9b5d411ab27c479125cee9bae391a96436 (patch) | |
tree | 74fcd09ee0f8510a8c60554bb1ece15c014b6c1b /drivers | |
parent | 430daaf96ad133be5ce7c3a5c60e94247f7c6f71 (diff) | |
download | linux-c0759b9b5d411ab27c479125cee9bae391a96436.tar.bz2 |
firmware: arm_scmi: update rate_discrete in clock_describe_rates_get
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: 5f6c6430e904 ("firmware: arm_scmi: add initial support for clock protocol")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
[sudeep.holla: updated commit message]
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firmware/arm_scmi/clock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/clock.c b/drivers/firmware/arm_scmi/clock.c index 30fc04e28431..0a194af92438 100644 --- a/drivers/firmware/arm_scmi/clock.c +++ b/drivers/firmware/arm_scmi/clock.c @@ -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; |