diff options
author | Steve Hodgson <shodgson@solarflare.com> | 2009-01-29 12:50:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-30 17:06:30 -0500 |
commit | 4b988280be13a1b4c17f51cc66948aef467e7601 (patch) | |
tree | b8a0bd4e96520461caeaeeea2f91aa64d6c32bdd /drivers/net/sfc/tenxpress.c | |
parent | 0cc128387969753ae037401eb49e4bbb474186ea (diff) |
sfc: Reinitialise the PHY completely in case of a PHY or NIC reset
In particular, set pause advertising bits properly.
A PHY reset is not necessary to recover from the register self-test,
so use a "invisible" reset there instead.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/tenxpress.c')
-rw-r--r-- | drivers/net/sfc/tenxpress.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/sfc/tenxpress.c b/drivers/net/sfc/tenxpress.c index bc2833f9cbe4..c9584619322a 100644 --- a/drivers/net/sfc/tenxpress.c +++ b/drivers/net/sfc/tenxpress.c | |||
@@ -337,6 +337,7 @@ static int tenxpress_phy_init(struct efx_nic *efx) | |||
337 | rc = tenxpress_init(efx); | 337 | rc = tenxpress_init(efx); |
338 | if (rc < 0) | 338 | if (rc < 0) |
339 | goto fail; | 339 | goto fail; |
340 | mdio_clause45_set_pause(efx); | ||
340 | 341 | ||
341 | if (efx->phy_type == PHY_TYPE_SFT9001B) { | 342 | if (efx->phy_type == PHY_TYPE_SFT9001B) { |
342 | rc = device_create_file(&efx->pci_dev->dev, | 343 | rc = device_create_file(&efx->pci_dev->dev, |