]> 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)
commitfa2877710e67f56bb15e12fc7dfb38f849ade795
treeef20b0388f769e1dd53b72bcae9dd0c7e4fac7db
parent5576029fdc795127e7598947b8f030e984219b48
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: 6e2f5a90239e ("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