Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54657
b: refs/heads/master
c: 10f8a59
h: refs/heads/master
i:
  54655: 96fa050
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed May 8, 2007
1 parent 9c3af81 commit aba8f08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 7e80d0d0b64f5c00b0ac7e623d96189309c298ca
refs/heads/master: 10f8a59813ee8bb41fb1d72ed2ec12a1c9f66da2
8 changes: 7 additions & 1 deletion trunk/drivers/parport/parport_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,20 @@ static int parport_serial_pci_suspend(struct pci_dev *dev, pm_message_t state)
static int parport_serial_pci_resume(struct pci_dev *dev)
{
struct parport_serial_private *priv = pci_get_drvdata(dev);
int err;

pci_set_power_state(dev, PCI_D0);
pci_restore_state(dev);

/*
* The device may have been disabled. Re-enable it.
*/
pci_enable_device(dev);
err = pci_enable_device(dev);
if (err) {
printk(KERN_ERR "parport_serial: %s: error enabling "
"device for resume (%d)\n", pci_name(dev), err);
return err;
}

if (priv->serial)
pciserial_resume_ports(priv->serial);
Expand Down

0 comments on commit aba8f08

Please sign in to comment.