Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10302
b: refs/heads/master
c: 5323280
h: refs/heads/master
v: v3
  • Loading branch information
Michal Schmidt authored and Jeff Garzik committed Oct 4, 2005
1 parent 5c06f7c commit 3c19ea8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: d5919586265d36c6694a5d10ba589c02806873b6
refs/heads/master: 53232803241ae0f26b39897a4d4b37775837de00
7 changes: 4 additions & 3 deletions trunk/drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -5504,12 +5504,13 @@ static int airo_pci_resume(struct pci_dev *pdev)
struct net_device *dev = pci_get_drvdata(pdev);
struct airo_info *ai = dev->priv;
Resp rsp;
pci_power_t prev_state = pdev->current_state;

pci_set_power_state(pdev, 0);
pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);
pci_enable_wake(pdev, pci_choose_state(pdev, ai->power), 0);
pci_enable_wake(pdev, PCI_D0, 0);

if (ai->power.event > 1) {
if (prev_state != PCI_D1) {
reset_card(dev, 0);
mpi_init_descriptors(ai);
setup_card(ai, dev->dev_addr, 0);
Expand Down

0 comments on commit 3c19ea8

Please sign in to comment.