]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: phy: marvell10g: check for newly set aneg
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 17 Feb 2019 09:32:29 +0000 (10:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 18:26:52 +0000 (10:26 -0800)
commit3ce2a027ae4e3ede876da6913641ad37c33b698b
tree27ed80285ee6e8fbc0cbee4277be5a4ae6e7293d
parent3de97f3c630850caf0fff67555bbe3f7ba61c308
net: phy: marvell10g: check for newly set aneg

Even if the advertisement registers content didn't change, we may have
just switched to aneg, and therefore have to trigger an aneg restart.
This matches the behavior of genphy_config_aneg().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c