File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1270,13 +1270,21 @@ static int ns83820_get_settings(struct net_device *ndev,
1270
1270
1271
1271
cmd -> supported = SUPPORTED_Autoneg ;
1272
1272
1273
- /* we have optical interface */
1274
1273
if (dev -> CFG_cache & CFG_TBI_EN ) {
1274
+ /* we have optical interface */
1275
1275
cmd -> supported |= SUPPORTED_1000baseT_Half |
1276
1276
SUPPORTED_1000baseT_Full |
1277
1277
SUPPORTED_FIBRE ;
1278
1278
cmd -> port = PORT_FIBRE ;
1279
- } /* TODO: else copper related support */
1279
+ } else {
1280
+ /* we have copper */
1281
+ cmd -> supported |= SUPPORTED_10baseT_Half |
1282
+ SUPPORTED_10baseT_Full | SUPPORTED_100baseT_Half |
1283
+ SUPPORTED_100baseT_Full | SUPPORTED_1000baseT_Half |
1284
+ SUPPORTED_1000baseT_Full |
1285
+ SUPPORTED_MII ;
1286
+ cmd -> port = PORT_MII ;
1287
+ }
1280
1288
1281
1289
cmd -> duplex = fullduplex ? DUPLEX_FULL : DUPLEX_HALF ;
1282
1290
switch (cfg / CFG_SPDSTS0 & 3 ) {
You can’t perform that action at this time.
0 commit comments