summaryrefslogtreecommitdiffstats
path: root/drivers
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
parentc6ddfb9a963f0cac0f7365acfc87f3f3b33a3b69 (diff)
downloadlinux-40f89ebfbd73fc9439ae8d4950f60226ad176690.tar.bz2
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')
-rw-r--r--drivers/net/phy/cortina.c1
-rw-r--r--drivers/net/phy/teranetics.c1
2 files changed, 2 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,
diff --git a/drivers/net/phy/teranetics.c b/drivers/net/phy/teranetics.c
index 22f3bdd8206c..91247182bc52 100644
--- a/drivers/net/phy/teranetics.c
+++ b/drivers/net/phy/teranetics.c
@@ -80,6 +80,7 @@ static struct phy_driver teranetics_driver[] = {
.phy_id = PHY_ID_TN2020,
.phy_id_mask = 0xffffffff,
.name = "Teranetics TN2020",
+ .features = PHY_10GBIT_FEATURES,
.soft_reset = gen10g_no_soft_reset,
.aneg_done = teranetics_aneg_done,
.config_init = gen10g_config_init,