net: phylink: avoid reducing support mask
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 2 Jun 2019 14:12:54 +0000 (15:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2019 18:43:24 +0000 (11:43 -0700)
commit77316763321ee4050f0576ffd472183aa90dcb30
treea543131b37db9c05b51fc8cf801dd69a36846c06
parent28e74a7cfd6403f0d1c0f8b10b45d6fae37b227e
net: phylink: avoid reducing support mask

Avoid reducing the support mask as a result of the interface type
selected for SFP modules, or when setting the link settings through
ethtool - this should only change when the supported link modes of
the hardware combination change.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c