Skip to content

Commit 3e70770

Browse files
tlendackydavem330
authored andcommitted
phy: Expand phy speed/duplex settings array
Expand the phy speed/duplex settings array to support more than just baseT features. This change adds entries to support the following additional speed/duplex/media types: SUPPORTED_10000baseKR_Full SUPPORTED_10000baseKX4_Full SUPPORTED_2500baseX_Full SUPPORTED_1000baseKX_Full Additionally, it changes the 10GbE baseT entry from using the hardcoded value 10000 to the SPEED_10000 define. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bfde339 commit 3e70770

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

drivers/net/phy/phy.c

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,30 @@ struct phy_setting {
138138
/* A mapping of all SUPPORTED settings to speed/duplex */
139139
static const struct phy_setting settings[] = {
140140
{
141-
.speed = 10000,
141+
.speed = SPEED_10000,
142+
.duplex = DUPLEX_FULL,
143+
.setting = SUPPORTED_10000baseKR_Full,
144+
},
145+
{
146+
.speed = SPEED_10000,
147+
.duplex = DUPLEX_FULL,
148+
.setting = SUPPORTED_10000baseKX4_Full,
149+
},
150+
{
151+
.speed = SPEED_10000,
142152
.duplex = DUPLEX_FULL,
143153
.setting = SUPPORTED_10000baseT_Full,
144154
},
155+
{
156+
.speed = SPEED_2500,
157+
.duplex = DUPLEX_FULL,
158+
.setting = SUPPORTED_2500baseX_Full,
159+
},
160+
{
161+
.speed = SPEED_1000,
162+
.duplex = DUPLEX_FULL,
163+
.setting = SUPPORTED_1000baseKX_Full,
164+
},
145165
{
146166
.speed = SPEED_1000,
147167
.duplex = DUPLEX_FULL,

0 commit comments

Comments
 (0)