Re: [PATCH net-next 1/3] net: mdio: mdio-bcm-unimac: Define MDIO_OP_SHIFT
From: Andrew Lunn
Date: Fri Nov 13 2026 - 16:55:22 EST
On Fri, Nov 13, 2026 at 01:15:52PM -0800, Florian Fainelli wrote:
> The MDIO_CMD operation code field starts at bit 26. Define
> MDIO_OP_SHIFT for it and use it to build the opcodes instead of open
> coding the shift.
>
> While at it, rename MDIO_RD and MDIO_WR to MDIO_RD_C22 and MDIO_WR_C22 to
> make it clear that these are the Clause 22 opcodes, in preparation for
> adding the Clause 45 ones.
>
> No functional change.
>
> Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew