Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] firmware: arm_scmi: clock: set rate_discrete
@ 2019-05-22 10:15 Peng Fan
  2019-05-24 14:26 ` Sudeep Holla
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Fan @ 2019-05-22 10:15 UTC (permalink / raw)
  To: sudeep.holla
  Cc: van.freenix, Peng Fan, linux-kernel, linux-arm-kernel, dl-linux-imx

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")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/firmware/arm_scmi/clock.c | 2 ++
 1 file changed, 2 insertions(+)

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;
-- 
2.16.4

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] firmware: arm_scmi: clock: set rate_discrete
  2019-05-22 10:15 [PATCH] firmware: arm_scmi: clock: set rate_discrete Peng Fan
@ 2019-05-24 14:26 ` Sudeep Holla
  0 siblings, 0 replies; 2+ messages in thread
From: Sudeep Holla @ 2019-05-24 14:26 UTC (permalink / raw)
  To: Peng Fan
  Cc: van.freenix, Sudeep Holla, linux-kernel, linux-arm-kernel, dl-linux-imx

On Wed, May 22, 2019 at 10:15:21AM +0000, Peng Fan wrote:
> 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.

> Fixes: 5f6c6430e904 ("firmware: arm_scmi: add initial support for clock protocol")
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  drivers/firmware/arm_scmi/clock.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> 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;
> -- 
> 2.16.4
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22 10:15 [PATCH] firmware: arm_scmi: clock: set rate_discrete Peng Fan
2019-05-24 14:26 ` Sudeep Holla

Linux-ARM-Kernel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/0 linux-arm-kernel/git/0.git
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/1 linux-arm-kernel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-kernel linux-arm-kernel/ https://lore.kernel.org/linux-arm-kernel \
		linux-arm-kernel@lists.infradead.org infradead-linux-arm-kernel@archiver.kernel.org
	public-inbox-index linux-arm-kernel


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-arm-kernel


AGPL code for this site: git clone https://public-inbox.org/ public-inbox