Skip to content

Commit a506a54

Browse files
author
Herton R. Krzesinski
committed
Merge: update drivers/clk/qcom to 6.2-rc2
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1843 Bugzilla: https://bugzilla.redhat.com/2158909 Update drivers/clk/qcom to 6.2-rc2 Also included [clk: Introduce the clk_hw_get_rate_range function](https://gitlab.com/athierry1/centos-stream-9/-/commit/3215564ef6570b8b80264340385d3f260fde282d) because `clk_hw_get_rate_range` is used in the qualcomm clk drivers. Signed-off-by: Adrien Thierry <athierry@redhat.com> Approved-by: Andrew Halaney <ahalaney@redhat.com> Approved-by: Brian Masney <bmasney@redhat.com> Approved-by: Eric Chanudet <echanude@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 657ef40 + 06ef018 commit a506a54

File tree

113 files changed

+64292
-6925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+64292
-6925
lines changed

Documentation/devicetree/bindings/clock/qcom,gpucc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ properties:
2424
enum:
2525
- qcom,sdm845-gpucc
2626
- qcom,sc7180-gpucc
27+
- qcom,sc8180x-gpucc
2728
- qcom,sm8150-gpucc
2829
- qcom,sm8250-gpucc
2930

drivers/clk/clk.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,22 @@ static void clk_core_get_boundaries(struct clk_core *core,
631631
*max_rate = min(*max_rate, clk_user->max_rate);
632632
}
633633

634+
/*
635+
* clk_hw_get_rate_range() - returns the clock rate range for a hw clk
636+
* @hw: the hw clk we want to get the range from
637+
* @min_rate: pointer to the variable that will hold the minimum
638+
* @max_rate: pointer to the variable that will hold the maximum
639+
*
640+
* Fills the @min_rate and @max_rate variables with the minimum and
641+
* maximum that clock can reach.
642+
*/
643+
void clk_hw_get_rate_range(struct clk_hw *hw, unsigned long *min_rate,
644+
unsigned long *max_rate)
645+
{
646+
clk_core_get_boundaries(hw->core, min_rate, max_rate);
647+
}
648+
EXPORT_SYMBOL_GPL(clk_hw_get_rate_range);
649+
634650
void clk_hw_set_rate_range(struct clk_hw *hw, unsigned long min_rate,
635651
unsigned long max_rate)
636652
{

0 commit comments

Comments
 (0)