[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1529664085.2900.3.camel@baylibre.com>
Date: Fri, 22 Jun 2018 12:41:25 +0200
From: Jerome Brunet <jbrunet@...libre.com>
To: Neil Armstrong <narmstrong@...libre.com>,
Kevin Hilman <khilman@...libre.com>,
Carlo Caione <carlo@...one.org>
Cc: linux-amlogic@...ts.infradead.org, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] clk: meson: audio-divider is one based
On Wed, 2018-06-20 at 10:31 +0200, Neil Armstrong wrote:
> On 19/06/2018 17:47, Jerome Brunet wrote:
> > The audio divider is one based. This offset was mistakenly dropped from
> > recalc_rate() when migrating to clk_regmap.
> >
> > Fixes: 88a4e1283681 ("clk: meson: migrate the audio divider clock to clk_regmap")
> > Signed-off-by: Jerome Brunet <jbrunet@...libre.com>
> > ---
> > drivers/clk/meson/clk-audio-divider.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/clk/meson/clk-audio-divider.c b/drivers/clk/meson/clk-audio-divider.c
> > index 58f546e04807..e4cf96ba704e 100644
> > --- a/drivers/clk/meson/clk-audio-divider.c
> > +++ b/drivers/clk/meson/clk-audio-divider.c
> > @@ -51,7 +51,7 @@ static unsigned long audio_divider_recalc_rate(struct clk_hw *hw,
> > struct meson_clk_audio_div_data *adiv = meson_clk_audio_div_data(clk);
> > unsigned long divider;
> >
> > - divider = meson_parm_read(clk->map, &adiv->div);
> > + divider = meson_parm_read(clk->map, &adiv->div) + 1;
> >
> > return DIV_ROUND_UP_ULL((u64)parent_rate, divider);
> > }
> >
>
> Acked-by: Neil Armstrong <narmstrong@...libre.com>
>
Applied for fixes
Powered by blists - more mailing lists