Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214300
b: refs/heads/master
c: 3c083ed
h: refs/heads/master
v: v3
  • Loading branch information
Denis Kirjanov authored and David S. Miller committed Sep 7, 2010
1 parent b4f2fc4 commit cbf7d39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7457e911c72eb0041b007943b0a29aab5a1c4a39
refs/heads/master: 3c083edc6d0d53a050672b15e3594d07d81b42e5
12 changes: 10 additions & 2 deletions trunk/drivers/net/ns83820.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,13 +1270,21 @@ static int ns83820_get_settings(struct net_device *ndev,

cmd->supported = SUPPORTED_Autoneg;

/* we have optical interface */
if (dev->CFG_cache & CFG_TBI_EN) {
/* we have optical interface */
cmd->supported |= SUPPORTED_1000baseT_Half |
SUPPORTED_1000baseT_Full |
SUPPORTED_FIBRE;
cmd->port = PORT_FIBRE;
} /* TODO: else copper related support */
} else {
/* we have copper */
cmd->supported |= SUPPORTED_10baseT_Half |
SUPPORTED_10baseT_Full | SUPPORTED_100baseT_Half |
SUPPORTED_100baseT_Full | SUPPORTED_1000baseT_Half |
SUPPORTED_1000baseT_Full |
SUPPORTED_MII;
cmd->port = PORT_MII;
}

cmd->duplex = fullduplex ? DUPLEX_FULL : DUPLEX_HALF;
switch (cfg / CFG_SPDSTS0 & 3) {
Expand Down

0 comments on commit cbf7d39

Please sign in to comment.