]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:47:19 +0000 (08:47 +0200)
commit7fcd99a9395d6fabaed78df252bf11c327870cf5
tree86efb05728ffea7a87db54ab74eec36050b5253d
parentb84de22448b5dccbaedf375148bf41c117b5c45f
net: phy: broadcom: Only advertise EEE for supported modes

[ Upstream commit c056d480b40a68f2520ccc156c7fae672d69d57d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/bcm-phy-lib.c