projects
/
wrapfs-3.2.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb863cc
)
clk: ingenic/TCU: Fix round_rate returning error
author
Paul Cercueil
<paul@crapouillou.net>
Thu, 13 Feb 2020 16:19:52 +0000
(13:19 -0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:12:16 +0000
(16:12 +0200)
commit
edcc42945dee85e9dec3737f3dbf59d917ae5418
upstream.
When requesting a rate superior to the parent's rate, it would return
-EINVAL instead of simply returning the parent's rate like it should.
Fixes: 4f89e4b8f121 ("clk: ingenic: Add driver for the TCU clocks")
Cc: stable@vger.kernel.org
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link:
https://lkml.kernel.org/r/20200213161952.37460-2-paul@crapouillou.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/ingenic/tcu.c
patch
|
blob
|
history
diff --git
a/drivers/clk/ingenic/tcu.c
b/drivers/clk/ingenic/tcu.c
index ad7daa494fd4a6c5acc0c6542a739b75442eab94..cd537c3db7824e6a9d8842769a63969365bcf988 100644
(file)
--- a/
drivers/clk/ingenic/tcu.c
+++ b/
drivers/clk/ingenic/tcu.c
@@
-189,7
+189,7
@@
static long ingenic_tcu_round_rate(struct clk_hw *hw, unsigned long req_rate,
u8 prescale;
if (req_rate > rate)
- return
-EINVAL
;
+ return
rate
;
prescale = ingenic_tcu_get_prescale(rate, req_rate);