Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150835
b: refs/heads/master
c: e762cd7
h: refs/heads/master
i:
  150833: de7993c
  150831: 92c946c
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Jun 11, 2009
1 parent 22fb181 commit 073c68d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: d005ba6cc82440d9ebf96f3ec8f79c54578b898f
refs/heads/master: e762cd70efad6b6236b084ff7e5ce54a5f524320
11 changes: 10 additions & 1 deletion trunk/drivers/net/sfc/tenxpress.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

/* extended status register */
#define PMA_PMD_XSTATUS_REG 49153
#define PMA_PMD_XSTAT_MDIX_LBN 14
#define PMA_PMD_XSTAT_FLP_LBN (12)

/* LED control register */
Expand Down Expand Up @@ -741,9 +742,17 @@ tenxpress_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd)

mdio45_ethtool_gset_npage(&efx->mdio, ecmd, adv, lpa);

if (efx->phy_type != PHY_TYPE_SFX7101)
if (efx->phy_type != PHY_TYPE_SFX7101) {
ecmd->supported |= (SUPPORTED_100baseT_Full |
SUPPORTED_1000baseT_Full);
if (ecmd->speed != SPEED_10000) {
ecmd->eth_tp_mdix =
(efx_mdio_read(efx, MDIO_MMD_PMAPMD,
PMA_PMD_XSTATUS_REG) &
(1 << PMA_PMD_XSTAT_MDIX_LBN))
? ETH_TP_MDI_X : ETH_TP_MDI;
}
}

/* In loopback, the PHY automatically brings up the correct interface,
* but doesn't advertise the correct speed. So override it */
Expand Down

0 comments on commit 073c68d

Please sign in to comment.