Re: [PATCH net-next v3 1/4] net: dsa: mxl862xx: store firmware version for feature gating
From: Andrew Lunn
Date: Thu May 28 2026 - 21:17:13 EST
On Wed, May 27, 2026 at 03:47:58AM +0100, Daniel Golle wrote:
> Query the firmware version at init (already done in wait_ready),
> cache it in priv->fw_version, and provide MXL862XX_FW_VER_MIN()
> for version-gated code paths throughout the driver.
>
> MXL862XX_FW_VER() packs major/minor/revision into a u32 with
> bitwise shifts so that versions compare with natural ordering,
> independent of host endianness.
>
> Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew