Skip to content
Commit fcd2e0de authored by Sudeep Holla's avatar Sudeep Holla
Browse files

clk: scmi: Fix min and max rate when registering clocks with discrete rates

Currently we are not initializing the scmi clock with discrete rates
correctly. We fetch the min_rate and max_rate value only for clocks with
ranges and ignore the ones with discrete rates. This will lead to wrong
initialization of rate range when clock supports discrete rate.

Fix this by using the first and the last rate in the sorted list of the
discrete clock rates while registering the clock.

Link: https://lore.kernel.org/r/20200709081705.46084-2-sudeep.holla@arm.com


Fixes: 6d6a1d82 ("clk: add support for clocks provided by SCMI")
Reviewed-by: default avatarStephen Boyd <sboyd@kernel.org>
Reported-and-tested-by: default avatarDien Pham <dien.pham.ry@renesas.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent dccec73d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment