Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327701
b: refs/heads/master
c: 6032fb5
h: refs/heads/master
i:
  327699: 4e8daae
v: v3
  • Loading branch information
Ben Hutchings committed Aug 24, 2012
1 parent e44739f commit 9748ba6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 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: 61da026d86517def727eb67d7cb8ee5657a12dd9
refs/heads/master: 6032fb56c546c0a14856dc57a92d84560816b217
28 changes: 16 additions & 12 deletions trunk/drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2729,12 +2729,14 @@ static int efx_pm_freeze(struct device *dev)

rtnl_lock();

efx->state = STATE_UNINIT;
if (efx->state != STATE_DISABLED) {
efx->state = STATE_UNINIT;

netif_device_detach(efx->net_dev);
netif_device_detach(efx->net_dev);

efx_stop_all(efx);
efx_stop_interrupts(efx, false);
efx_stop_all(efx);
efx_stop_interrupts(efx, false);
}

rtnl_unlock();

Expand All @@ -2747,19 +2749,21 @@ static int efx_pm_thaw(struct device *dev)

rtnl_lock();

efx_start_interrupts(efx, false);
if (efx->state != STATE_DISABLED) {
efx_start_interrupts(efx, false);

mutex_lock(&efx->mac_lock);
efx->phy_op->reconfigure(efx);
mutex_unlock(&efx->mac_lock);
mutex_lock(&efx->mac_lock);
efx->phy_op->reconfigure(efx);
mutex_unlock(&efx->mac_lock);

efx_start_all(efx);
efx_start_all(efx);

netif_device_attach(efx->net_dev);
netif_device_attach(efx->net_dev);

efx->state = STATE_READY;
efx->state = STATE_READY;

efx->type->resume_wol(efx);
efx->type->resume_wol(efx);
}

rtnl_unlock();

Expand Down

0 comments on commit 9748ba6

Please sign in to comment.