Skip to content

Commit

Permalink
tulip: explicity set to D0 power state during init
Browse files Browse the repository at this point in the history
During the first suspend the chip would refuse to enter D3.  Subsequent
suspends worked okay.  During resume the chip is commanded into D0.
Doing so during initialization fixes the initial suspend.

Signed-off-by: Steven Walter <stevenrwalter@gmail.com>
Signed-off-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Steven Walter authored and David S. Miller committed Jun 1, 2010
1 parent 92c4bbf commit 7a1d7f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/tulip/tulip_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,13 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
return i;
}

/* The chip will fail to enter a low-power state later unless
* first explicitly commanded into D0 */
if (pci_set_power_state(pdev, PCI_D0)) {
printk (KERN_NOTICE PFX
"Failed to set power state to D0\n");
}

irq = pdev->irq;

/* alloc_etherdev ensures aligned and zeroed private structures */
Expand Down

0 comments on commit 7a1d7f0

Please sign in to comment.