Re: [PATCH net-next] net: phy: marvell: add support for MV88E6020 internal PHYs

From: Andrew Lunn
Date: Wed Apr 24 2024 - 08:52:37 EST


On Wed, Apr 24, 2024 at 02:10:22PM +0200, Matthias Schiffer wrote:
> The embedded PHYs of the MV88E6020 (88E6250 family) switch are very
> basic - they do not even have an Extended Address / Page register.
> +static struct marvell_hw_stat marvell_hw_stats_88e6020[] = {

> + { "phy_receive_errors", 0, 21, 16},

So the 0 here is bogus?

This patch is quite invasive, and it is hard to say it is worth it. I
would probably not try to reuses as much code, add functions which are
specific to the 6250. Keep it KISS.

Andrew