]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: broadcom: Only advertise EEE for supported modes
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 30 Mar 2021 22:00:24 +0000 (15:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 00:39:23 +0000 (17:39 -0700)
commitc056d480b40a68f2520ccc156c7fae672d69d57d
treeef20b0388f769e1dd53b72bcae9dd0c7e4fac7db
parent2ea538dbee1c79f6f6c24a6f2f82986e4b7ccb78
net: phy: broadcom: Only advertise EEE for supported modes

We should not be advertising EEE for modes that we do not support,
correct that oversight by looking at the PHY device supported linkmodes.

Fixes: 99cec8a4dda2 ("net: phy: broadcom: Allow enabling or disabling of EEE")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm-phy-lib.c