Re: [PATCH v4 02/42] ARM: ep93xx: add swlocked prototypes

From: Alexander Sverdlin
Date: Mon Sep 18 2023 - 12:56:29 EST


Hi Nikita,

On Sat, 2023-09-16 at 17:38 +0200, Alexander Sverdlin wrote:
> > Add ep93xx_regmap_write and ep93xx_regmap_update_bits to make drivers
> > compilable before actual implementation is added.
>
> It should be possible to re-arrange the patch series so that real
> implementation comes before the drivers using it.
>
> We must assure that bisecting the kernel tree is possible, that
> means no matter which (initial) part of your series is applied, there is no
> regression allowed.
>

sorry for the confusion, there is no bisectability problem in it
indeed, because only new drivers use it and they are not active until
the last patches in the series swith to DT.

I'd personally probably melt commit 10 ("soc: Add SoC driver for Cirrus ep93xx")
into this one, but I don't see it necessary after all.

> > Signed-off-by: Nikita Shubin <nikita.shubin@xxxxxxxxxxx>
> > ---
> >  include/linux/soc/cirrus/ep93xx.h | 6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> > diff --git a/include/linux/soc/cirrus/ep93xx.h b/include/linux/soc/cirrus/ep93xx.h
> > index 56fbe2dc59b1..8b4b8221ed4c 100644
> > --- a/include/linux/soc/cirrus/ep93xx.h
> > +++ b/include/linux/soc/cirrus/ep93xx.h
> > @@ -3,6 +3,7 @@
> >  #define _SOC_EP93XX_H
> >  
> >  struct platform_device;
> > +struct regmap;
> >  
> >  #define EP93XX_CHIP_REV_D0     3
> >  #define EP93XX_CHIP_REV_D1     4
> > @@ -34,4 +35,9 @@ static inline unsigned int ep93xx_chip_revision(void) { return 0; }
> >  
> >  #endif
> >  
> > +static inline void ep93xx_regmap_write(struct regmap *map, unsigned int reg, unsigned int val) {}
> > +static inline void ep93xx_regmap_update_bits(struct regmap *map, unsigned int reg,
> > +                                            unsigned int mask, unsigned int val)
> > +{ }
> > +
> >  #endif

--
Alexander Sverdlin.