aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ns83820.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/ns83820.c b/drivers/net/ns83820.c
index b3cebb1204f1..379af3e4edcc 100644
--- a/drivers/net/ns83820.c
+++ b/drivers/net/ns83820.c
@@ -1270,13 +1270,21 @@ static int ns83820_get_settings(struct net_device *ndev,
1270 1270
1271 cmd->supported = SUPPORTED_Autoneg; 1271 cmd->supported = SUPPORTED_Autoneg;
1272 1272
1273 /* we have optical interface */
1274 if (dev->CFG_cache & CFG_TBI_EN) { 1273 if (dev->CFG_cache & CFG_TBI_EN) {
1274 /* we have optical interface */
1275 cmd->supported |= SUPPORTED_1000baseT_Half | 1275 cmd->supported |= SUPPORTED_1000baseT_Half |
1276 SUPPORTED_1000baseT_Full | 1276 SUPPORTED_1000baseT_Full |
1277 SUPPORTED_FIBRE; 1277 SUPPORTED_FIBRE;
1278 cmd->port = PORT_FIBRE; 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 cmd->duplex = fullduplex ? DUPLEX_FULL : DUPLEX_HALF; 1289 cmd->duplex = fullduplex ? DUPLEX_FULL : DUPLEX_HALF;
1282 switch (cfg / CFG_SPDSTS0 & 3) { 1290 switch (cfg / CFG_SPDSTS0 & 3) {