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

From: Alexander Sverdlin
Date: Sat Sep 16 2023 - 11:40:00 EST


Hi Nikita!

On Fri, 2023-09-15 at 11:10 +0300, Nikita Shubin via B4 Relay wrote:
> From: Nikita Shubin <nikita.shubin@xxxxxxxxxxx>
>
> 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.

> 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.