RE: [PATCH net-next v12 09/15] net: ethernet: oa_tc6: Support for vendor specific MMS

From: Selvamani Rajagopal

Date: Tue Nov 24 2026 - 17:37:37 EST


Andrew,

I have removed the "Reviewed-by" tag for this patch. Because the implementation has
changed since you last reviewed. As we have quirks structure now, it is easier to pass
vendor specific MMS to oa_tc6_init.

As you may be aware, use of oa_tc6_set_vend1_mms would work only after oa_tc6_init
has returned. That means oa_tc6_get_phy_c45_mms function would fail during
mdio registration which is done inside oa_tc6_init.

Sincerely
Selva

> -----Original Message-----
> From: Selvamani Rajagopal via B4 Relay
> <devnull+Selvamani.Rajagopal.onsemi.com@xxxxxxxxxx>
> Sent: Tuesday, November 24, 2026 2:10 PM
> To: Andrew Lunn <andrew@xxxxxxx>; Heiner Kallweit <hkallweit1@xxxxxxxxx>; Russell
> Subject: [PATCH net-next v12 09/15] net: ethernet: oa_tc6: Support for vendor specific
> MMS
>
>
> changes in v12
> - Dropped Reviewed-by from Andrew Lunn as the code has changed.
> - MMD VEND1 mapping is now part of the quirks, not an API.


>
> if (quirks)
> - tc6->quirk_flags = quirks->quirk_flags;
> + tc6->quirks = *quirks;
> +
> + if (!tc6->quirks.vend1_mms)
> + tc6->quirks.vend1_mms = -EOPNOTSUPP;
> + else if (tc6->quirks.vend1_mms < OA_TC6_VENDOR_MMS_MIN ||
> + tc6->quirks.vend1_mms > OA_TC6_VENDOR_MMS_MAX)
> + return ERR_PTR(dev_err_probe(&spi->dev, -EINVAL,
> + "Invalid VEND1 MMS: %d\n",
> + tc6->quirks.vend1_mms));
>
> /* Set the SPI controller to pump at realtime priority */
> tc6->spi->rt = true;




>
> struct oa_tc6_quirks {
> enum oa_tc6_quirk_flag quirk_flags;
> + int vend1_mms;
> };
>
> struct oa_tc6 *oa_tc6_init(struct spi_device *spi, struct net_device *netdev,
>
> --
> 2.43.0