* [PATCH] clk: rockchip: fix rk3188 hsadc_frac definition
@ 2014-10-30 13:26 Heiko Stübner
2014-11-07 22:41 ` Heiko Stübner
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Stübner @ 2014-10-30 13:26 UTC (permalink / raw)
To: linux-arm-kernel
The arguments to COMPOSITE_FRAC for hsadc_frac were mangled, leaving out the
the general clock flags argument. This results in strange effects, as only
sometimes a zero-division is reported as the wrong register is read.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
We added the fraction divider handling in 3.18, so this should
go as fix into the current 3.18 to
Mike, I don't see anymore fixes on the horizon currently, so I'm not sure
if you want a pull request for this one patch or apply it directly.
drivers/clk/rockchip/clk-rk3188.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c
index 0bc0e7d..b5c7c01 100644
--- a/drivers/clk/rockchip/clk-rk3188.c
+++ b/drivers/clk/rockchip/clk-rk3188.c
@@ -320,9 +320,9 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = {
COMPOSITE(0, "hsadc_src", mux_pll_src_gpll_cpll_p, 0,
RK2928_CLKSEL_CON(22), 0, 1, MFLAGS, 8, 8, DFLAGS,
RK2928_CLKGATE_CON(2), 6, GFLAGS),
- COMPOSITE_FRAC(0, "hsadc_frac", "hsadc_src",
+ COMPOSITE_FRAC(0, "hsadc_frac", "hsadc_src", 0,
RK2928_CLKSEL_CON(23), 0,
- RK2928_CLKGATE_CON(2), 7, 0, GFLAGS),
+ RK2928_CLKGATE_CON(2), 7, GFLAGS),
MUX(SCLK_HSADC, "sclk_hsadc", mux_sclk_hsadc_p, 0,
RK2928_CLKSEL_CON(22), 4, 2, MFLAGS),
--
2.0.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] clk: rockchip: fix rk3188 hsadc_frac definition
2014-10-30 13:26 [PATCH] clk: rockchip: fix rk3188 hsadc_frac definition Heiko Stübner
@ 2014-11-07 22:41 ` Heiko Stübner
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stübner @ 2014-11-07 22:41 UTC (permalink / raw)
To: linux-arm-kernel
Am Donnerstag, 30. Oktober 2014, 14:26:13 schrieb Heiko St?bner:
> The arguments to COMPOSITE_FRAC for hsadc_frac were mangled, leaving out the
> the general clock flags argument. This results in strange effects, as only
> sometimes a zero-division is reported as the wrong register is read.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
I've applied this into my rockchip clock branch for 3.19
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-07 22:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-30 13:26 [PATCH] clk: rockchip: fix rk3188 hsadc_frac definition Heiko Stübner
2014-11-07 22:41 ` Heiko Stübner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).