aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/cortina.c
diff options
context:
space:
mode:
authorCamelia Groza <camelia.groza@nxp.com>2019-01-17 14:33:33 +0200
committerDavid S. Miller <davem@davemloft.net>2019-01-17 22:03:25 -0800
commit40f89ebfbd73fc9439ae8d4950f60226ad176690 (patch)
treef0f96d9fa773fafe55fa03cf2146b4d5b1c7299f /drivers/net/phy/cortina.c
parentdpaa_eth: NETIF_F_LLTX requires to do our own update of trans_start (diff)
downloadlinux-dev-40f89ebfbd73fc9439ae8d4950f60226ad176690.tar.xz
linux-dev-40f89ebfbd73fc9439ae8d4950f60226ad176690.zip
net: phy: add missing phy driver features
The phy drivers for CS4340 and TN2020 are missing their features attributes. Add them. Fixes: 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode bitmap") Reported-by: Scott Wood <oss@buserror.net> Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/cortina.c')
-rw-r--r--drivers/net/phy/cortina.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
index 8022cd317f62..1a4d04afb7f0 100644
--- a/drivers/net/phy/cortina.c
+++ b/drivers/net/phy/cortina.c
@@ -88,6 +88,7 @@ static struct phy_driver cortina_driver[] = {
.phy_id = PHY_ID_CS4340,
.phy_id_mask = 0xffffffff,
.name = "Cortina CS4340",
+ .features = PHY_10GBIT_FEATURES,
.config_init = gen10g_config_init,
.config_aneg = gen10g_config_aneg,
.read_status = cortina_read_status,