Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122949
b: refs/heads/master
c: 8438134
h: refs/heads/master
i:
  122947: 432241b
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Dec 26, 2008
1 parent bc6ff86 commit 6d7faed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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: f4bd954e7c24063b15fa9abc8b4b1242772928ed
refs/heads/master: 843813453f52e3378fc988c8364063fd4cb9d0e3
17 changes: 10 additions & 7 deletions trunk/drivers/net/sfc/mdio_10g.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,16 @@ void mdio_clause45_get_settings_ext(struct efx_nic *efx,
} else
ecmd->autoneg = AUTONEG_DISABLE;

/* If AN is enabled and complete, report best common mode */
if (ecmd->autoneg &&
(mdio_clause45_read(efx, phy_id, MDIO_MMD_AN, MDIO_MMDREG_STAT1) &
(1 << MDIO_AN_STATUS_AN_DONE_LBN))) {
u32 common, lpa;
lpa = mdio_clause45_get_an(efx, MDIO_AN_LPA, xnp_lpa);
common = ecmd->advertising & lpa;
if (ecmd->autoneg) {
/* If AN is complete, report best common mode,
* otherwise report best advertised mode. */
u32 common = ecmd->advertising;
if (mdio_clause45_read(efx, phy_id, MDIO_MMD_AN,
MDIO_MMDREG_STAT1) &
(1 << MDIO_AN_STATUS_AN_DONE_LBN)) {
common &= mdio_clause45_get_an(efx, MDIO_AN_LPA,
xnp_lpa);
}
if (common & ADVERTISED_10000baseT_Full) {
ecmd->speed = SPEED_10000;
ecmd->duplex = DUPLEX_FULL;
Expand Down

0 comments on commit 6d7faed

Please sign in to comment.