diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-02-25 00:59:15 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2011-03-01 00:57:23 +0100 |
commit | a461103ba2e22cbb70771588b36f40df39a50f46 (patch) | |
tree | 526fe1532d3c69d9b322a458b8b26341058c6aa3 /drivers/net/sfc/mdio_10g.h | |
parent | sfc: Read MC firmware version when requested through ethtool (diff) | |
download | linux-a461103ba2e22cbb70771588b36f40df39a50f46.tar.xz linux-a461103ba2e22cbb70771588b36f40df39a50f46.zip |
sfc: Do not read STAT1.FAULT in efx_mdio_check_mmd()
This field does not exist in all MMDs we want to check, and all
callers allow it to be set (fault_fatal = 0).
Remove the loopback condition, as STAT2.DEVPRST should be valid
regardless of any fault.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/sfc/mdio_10g.h')
-rw-r--r-- | drivers/net/sfc/mdio_10g.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/sfc/mdio_10g.h b/drivers/net/sfc/mdio_10g.h index 75791d3d4963..44c5dee52107 100644 --- a/drivers/net/sfc/mdio_10g.h +++ b/drivers/net/sfc/mdio_10g.h @@ -68,8 +68,7 @@ extern int efx_mdio_reset_mmd(struct efx_nic *efx, int mmd, int spins, int spintime); /* As efx_mdio_check_mmd but for multiple MMDs */ -int efx_mdio_check_mmds(struct efx_nic *efx, - unsigned int mmd_mask, unsigned int fatal_mask); +int efx_mdio_check_mmds(struct efx_nic *efx, unsigned int mmd_mask); /* Check the link status of specified mmds in bit mask */ extern bool efx_mdio_links_ok(struct efx_nic *efx, unsigned int mmd_mask); |