Re: [PATCH net v1] net: phy: micrel: Correct bit assignment for MICREL_KSZ8_P1_ERRATA flag

From: Jakub Kicinski
Date: Thu Aug 31 2023 - 21:33:15 EST


On Thu, 31 Aug 2023 13:23:42 +0200 Oleksij Rempel wrote:
> > > /* struct phy_device dev_flags definitions */
> > > #define MICREL_PHY_50MHZ_CLK 0x00000001
> > > #define MICREL_PHY_FXEN 0x00000002
> > > -#define MICREL_KSZ8_P1_ERRATA 0x00000003
> > > +#define MICREL_KSZ8_P1_ERRATA BIT(3)
> >
> > Please can you also convert the other two flags to use BIT() as well to
> > make the entire thing explicitly bit-orientated? Thanks.
>
> Ack. This patch is for the net. The cleanup will got to the net-next.
> Except clean up will be accepted for the net too?

The change is simple enough, you can convert all three bits in the fix.
The commit message could more explicitly say that these defines are
supposed to be masks not bit positions, tho.