Re: [PATCH v2 4/8] reset: imx8mp-audiomix: Drop unneeded macros
From: Daniel Baluta
Date: Mon Oct 27 2025 - 06:02:19 EST
On Fri, Oct 17, 2025 at 5:47 PM Frank Li <Frank.li@xxxxxxx> wrote:
>
> On Fri, Oct 17, 2025 at 04:20:21AM -0700, Laurentiu Mihalcea wrote:
> > From: Laurentiu Mihalcea <laurentiu.mihalcea@xxxxxxx>
> >
> > The macros defining the mask values for the EARC, EARC PHY resets,
> > and the DSP RUN_STALL signal can be dropped as they are not and will
> > not be used anywhere else except to set the value of the "mask" field
> > from "struct imx8mp_reset_map". In this particular case, based on the
> > name of the "mask" field, you can already deduce what these values are
> > for, which is why defining macros for them doesn't offer any new
> > information, nor does it help with the code readability.
> >
> > Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@xxxxxxx>
> > ---
>
> Register define still prefer use macro.
>
> So far const string, hexvalue prefer use value if only use once.
This is simple enough that we can use the BIT() macro directly to express
the masks.
As you said you can use the const value (including BIT()) when the value is used
only once as it is this case.
So I think this patch is fine:
Reviewed-by: Daniel Baluta <daniel.baluta@xxxxxxx>