On Mon, Nov 30, 2026 at 02:55:11AM +0200, Cristian Ciocaltea wrote:
> as21xxx_read_status() masks the speed status with VEND1_SPEED_STATUS, > the address of the register it just read, instead of VEND1_SPEED_MASK, > which is the field mask the speed values are built with. > > This affects the path taken when auto-negotiation is disabled. For > example, after setting "speed 100 duplex full autoneg off", ethtool > would incorrectly report "Speed: 10Mb/s" instead of "Speed: 100Mb/s". > > Switch to the correct field mask so the speed is decoded properly. > > Fixes: 830877d89edc ("net: phy: Add support for Aeonsemi AS21xxx PHYs") > Signed-off-by: Cristian Ciocaltea <cris…@collabora.com>
Reviewed-by: Andrew Lunn <andr…@lunn.ch> Andrew