Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327700
b: refs/heads/master
c: 61da026
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings committed Aug 24, 2012
1 parent 4e8daae commit e44739f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f16aeea0e679d5fd43fc02e99569c52d77d5e5d3
refs/heads/master: 61da026d86517def727eb67d7cb8ee5657a12dd9
8 changes: 8 additions & 0 deletions trunk/drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2727,20 +2727,26 @@ static int efx_pm_freeze(struct device *dev)
{
struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev));

rtnl_lock();

efx->state = STATE_UNINIT;

netif_device_detach(efx->net_dev);

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

rtnl_unlock();

return 0;
}

static int efx_pm_thaw(struct device *dev)
{
struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev));

rtnl_lock();

efx_start_interrupts(efx, false);

mutex_lock(&efx->mac_lock);
Expand All @@ -2755,6 +2761,8 @@ static int efx_pm_thaw(struct device *dev)

efx->type->resume_wol(efx);

rtnl_unlock();

/* Reschedule any quenched resets scheduled during efx_pm_freeze() */
queue_work(reset_workqueue, &efx->reset_work);

Expand Down

0 comments on commit e44739f

Please sign in to comment.