Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40f89ebf authored by Camelia Groza's avatar Camelia Groza Committed by David S. Miller
Browse files

net: phy: add missing phy driver features



The phy drivers for CS4340 and TN2020 are missing their
features attributes. Add them.

Fixes: 719655a1 ("net: phy: Replace phy driver features u32 with link_mode bitmap")
Reported-by: default avatarScott Wood <oss@buserror.net>
Signed-off-by: default avatarCamelia Groza <camelia.groza@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c6ddfb9a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,
+1 −0
Original line number Diff line number Diff line
@@ -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,