Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167133
b: refs/heads/master
c: 7affb32
h: refs/heads/master
i:
  167131: 604d309
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Jeff Garzik committed Oct 7, 2009
1 parent 66d635c commit 22c8753
Show file tree
Hide file tree
Showing 2 changed files with 22 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: c59bcc37cb56e00ae0582339bea948853d600436
refs/heads/master: 7affb32a32eabbbe42d6746923ec1d0bf7327234
21 changes: 21 additions & 0 deletions trunk/drivers/ata/pata_atp867x.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,23 @@ static int atp867x_init_one(struct pci_dev *pdev,
return rc;
}

#ifdef CONFIG_PM
static int atp867x_reinit_one(struct pci_dev *pdev)
{
struct ata_host *host = dev_get_drvdata(&pdev->dev);
int rc;

rc = ata_pci_device_do_resume(pdev);
if (rc)
return rc;

atp867x_fixup(host);

ata_host_resume(host);
return 0;
}
#endif

static struct pci_device_id atp867x_pci_tbl[] = {
{ PCI_VDEVICE(ARTOP, PCI_DEVICE_ID_ARTOP_ATP867A), 0 },
{ PCI_VDEVICE(ARTOP, PCI_DEVICE_ID_ARTOP_ATP867B), 0 },
Expand All @@ -544,6 +561,10 @@ static struct pci_driver atp867x_driver = {
.id_table = atp867x_pci_tbl,
.probe = atp867x_init_one,
.remove = ata_pci_remove_one,
#ifdef CONFIG_PM
.suspend = ata_pci_device_suspend,
.resume = atp867x_reinit_one,
#endif
};

static int __init atp867x_init(void)
Expand Down

0 comments on commit 22c8753

Please sign in to comment.