at91 clocks

Boris Brezillon boris.brezillon at free-electrons.com
Fri Mar 27 06:54:10 PDT 2015


On Fri, 27 Mar 2015 13:51:46 +0100
Jonas Andersson <jonas at microbit.se> wrote:

> Hi Boris,
> On 2015-03-27 13:25, Boris Brezillon wrote:
> > On Fri, 27 Mar 2015 13:20:03 +0100
> > Boris Brezillon <boris.brezillon at free-electrons.com> wrote:
> >
> >
> >>> I tested with IS_ERR, changed this to IS_ERR_OR_NULL, but the pointer is ok.
> >> Can you print clk_get_rate(parent_clk) result ?
> > Could you also paste me the whole clk_summary content ?
> >
> >
> http://pastie.org/10057268

Could you try with this patch [1] ?
Anyway, I don't understand why clk_set_rate returns 0 even when it
fails to set the appropriate rate.
Could you add some traces in drivers/clk/at91/clk-pll.c
(clk_pll_round_rate, clk_pll_set_rate and clk_pll_get_best_div_mul) ?

Thanks,

Boris

[1]http://code.bulix.org/gxxhc4-88138

-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the linux-arm-kernel mailing list