Skip to content

Commit 40f89eb

Browse files
camelia-groza-NXPdavem330
authored andcommitted
net: phy: add missing phy driver features
The phy drivers for CS4340 and TN2020 are missing their features attributes. Add them. Fixes: 719655a ("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>
1 parent c6ddfb9 commit 40f89eb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/net/phy/cortina.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ static struct phy_driver cortina_driver[] = {
8888
.phy_id = PHY_ID_CS4340,
8989
.phy_id_mask = 0xffffffff,
9090
.name = "Cortina CS4340",
91+
.features = PHY_10GBIT_FEATURES,
9192
.config_init = gen10g_config_init,
9293
.config_aneg = gen10g_config_aneg,
9394
.read_status = cortina_read_status,

drivers/net/phy/teranetics.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ static struct phy_driver teranetics_driver[] = {
8080
.phy_id = PHY_ID_TN2020,
8181
.phy_id_mask = 0xffffffff,
8282
.name = "Teranetics TN2020",
83+
.features = PHY_10GBIT_FEATURES,
8384
.soft_reset = gen10g_no_soft_reset,
8485
.aneg_done = teranetics_aneg_done,
8586
.config_init = gen10g_config_init,

0 commit comments

Comments
 (0)