Re: [PATCh stable 4.19] net: phy: broadcom: Only advertise EEE for supported modes

From: Sasha Levin
Date: Wed Apr 14 2021 - 08:30:42 EST


On Mon, Apr 12, 2021 at 04:30:14PM -0700, Florian Fainelli wrote:
commit c056d480b40a68f2520ccc156c7fae672d69d57d upstream

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@xxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

Queued up this and the 4.14 backport, thanks!

--
Thanks,
Sasha