phylink: ensure the PHY interface mode is appropriately set
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 20 Dec 2017 23:21:28 +0000 (23:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Jan 2018 19:31:12 +0000 (20:31 +0100)
commit39889c293371e826503b61d98050a49742ccaf9c
treede48bd93238c2af8079b4250629becac1df99264
parent7f6dcb82d04045f143758f56caf031376f9bf16c
phylink: ensure the PHY interface mode is appropriately set

[ Upstream commit 182088aa3c6c7f7c20a2c1dcc9ded4a3fc631f38 ]

When setting the ethtool settings, ensure that the validated PHY
interface mode is propagated to the current link settings, so that
2500BaseX can be selected.

Fixes: 9525ae83959b ("phylink: add phylink infrastructure")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/phylink.c