[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230831183307.6145542e@kernel.org>
Date: Thu, 31 Aug 2023 18:33:07 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Oleksij Rempel <o.rempel@...gutronix.de>
Cc: "Russell King (Oracle)" <linux@...linux.org.uk>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>, kernel@...gutronix.de,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
Lukasz Majewski <lukma@...x.de>
Subject: Re: [PATCH net v1] net: phy: micrel: Correct bit assignment for
MICREL_KSZ8_P1_ERRATA flag
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.
Powered by blists - more mailing lists