Re: [RFC] clk: Remove cached cores in parent map during unregister
From: Raul Rangel
Date: Tue Sep 17 2019 - 11:34:29 EST
On Mon, Aug 26, 2019 at 02:24:14PM -0700, Stephen Boyd wrote:
> >
> > ---8<---
> > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> > index c0990703ce54..f42a803fb11a 100644
> > --- a/drivers/clk/clk.c
> > +++ b/drivers/clk/clk.c
> > @@ -3737,6 +3737,37 @@ static const struct clk_ops clk_nodrv_ops = {
> > .set_parent = clk_nodrv_set_parent,
> > };
> >
> > +static void clk_core_evict_parent_cache_subtree(struct clk_core *root,
> > + struct clk_core *target)
> > +{
> > + int i;
> > + struct clk_core *child;
> > +
> > + if (!root)
> > + return;
>
> I don't think we need this part. Child is always a valid pointer.
>
Bjorn or Saiprakash
Are there any plans to send out Stephen's proposed patch?
Thanks