Re: [PATCH 02/16] clk: sunxi-ng: Add common infrastructure

Jean-Francois Moine
2016-05-16T08:02:39Z

On Sun, 15 May 2016 20:31:22 +0200
Maxime Ripard <maxime.ripard@free-electrons.com> wrote:

> > > +void ccu_helper_wait_for_lock(struct ccu_common *common, u32 lock)
> > > +{
> > > + u32 reg;
> > > +
> > > + if (!(common->features & CCU_FEATURE_LOCK))
> > > + return;
> > > +
> > > + WARN_ON(readl_relaxed_poll_timeout(common->base + common->reg=
, reg,
> > > + !(reg & lock), 0, 500));
> >=20
> > no delay between reads? ^
>=20
> Yes, I intended it to be a simple busy waiting loop since I don't
> expect it to be very long. Do yu have any more data on how much time
> it usually takes?

I have a Soc in which the rate of the audio clock is stable after a
good second.

--=20
Ken ar c'henta=F1 | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/