Re: [PATCH net 2/2] net: dsa: mv88e6xxx: 6320/21 read cmode on serdes ports

From: Russell King (Oracle)
Date: Mon Feb 26 2024 - 05:00:19 EST


On Mon, Feb 26, 2024 at 10:13:24AM +0100, Steffen Bätz wrote:
> @@ -660,6 +660,16 @@ static void mv88e632x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port,
>
> config->mac_capabilities = MAC_SYM_PAUSE | MAC_10 | MAC_100 |
> MAC_1000FD;
> +
> + /* Port 0/1 are serdes only ports */
> + if (port == 0 || port == 1) {
> + cmode = mv88e63xx_get_port_serdes_cmode(chip, port);
> + if (cmode < 0)
> + dev_err(chip->dev, "p%d: failed to read serdes cmode\n",
> + port);
> + else
> + mv88e6xxx_translate_cmode(cmode, supported);
> + }

Ah, ignore my comment on the other patch.

--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!