projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b9f6f
)
MLK-21828-3 clk-imx8: fix get clk rate issue
author
Ye Li
<ye.li@nxp.com>
Fri, 8 Mar 2019 09:29:56 +0000
(
01:29
-0800)
committer
Ye Li
<ye.li@nxp.com>
Fri, 24 May 2019 08:51:15 +0000
(
01:51
-0700)
The SCFW get clock rate API only return u32, but we use a ulong to
get the value. The ulong variable is not initialized, so on stack
it higher 32 bits may not zero, and return invalid rate.
Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/clk/imx/clk-imx8.c
patch
|
blob
|
history
diff --git
a/drivers/clk/imx/clk-imx8.c
b/drivers/clk/imx/clk-imx8.c
index
d03fcc2
..
99e0d98
100644
(file)
--- a/
drivers/clk/imx/clk-imx8.c
+++ b/
drivers/clk/imx/clk-imx8.c
@@
-45,7
+45,7
@@
static struct imx8_clks imx8_clk_names[] = {
static ulong imx8_clk_get_rate(struct clk *clk)
{
sc_pm_clk_t pm_clk;
- u
long
rate;
+ u
32
rate;
u16 resource;
int ret;