Re: [PATCH] clk: scpi: fix return type of __scpi_dvfs_round_rate
From: Stephen Boyd
Date: Thu Jun 01 2017 - 05:13:20 EST
On 05/18, Sudeep Holla wrote:
> The frequencies above the maximum value of signed integer(i.e. 2^31 -1)
> will overflow with the current code.
>
> This patch fixes the return type of __scpi_dvfs_round_rate from 'int'
> to 'unsigned long'.
>
> Fixes: cd52c2a4b5c4 ("clk: add support for clocks provided by SCP(System Control Processor)")
> Cc: Michael Turquette <mturquette@xxxxxxxxxxxx>
> Cc: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
> Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxx>
> ---
Applied to clk-next
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project