Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172888
b: refs/heads/master
c: 0826ef5
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Jeff Garzik committed Dec 3, 2009
1 parent 1409377 commit cf15283
Show file tree
Hide file tree
Showing 2 changed files with 11 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: dd4a43c979d5da7f2cd20e2751dbbd841116cdfe
refs/heads/master: 0826ef5f6fa28c50b70cfae001fd31531a1656f8
11 changes: 10 additions & 1 deletion trunk/drivers/ata/pata_rz1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,20 @@ static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *en
#ifdef CONFIG_PM
static int rz1000_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;

/* If this fails on resume (which is a "cant happen" case), we
must stop as any progress risks data loss */
if (rz1000_fifo_disable(pdev))
panic("rz1000 fifo");
return ata_pci_device_resume(pdev);

ata_host_resume(host);
return 0;
}
#endif

Expand Down

0 comments on commit cf15283

Please sign in to comment.