mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
pata_hpt3x3: Power Management fix
Fix ->resume method to re-enable & re-init PCI device properly before doing chipset specific setup. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
940a68de56
commit
3915044468
1 changed files with 10 additions and 1 deletions
|
@ -255,8 +255,17 @@ static int hpt3x3_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
static int hpt3x3_reinit_one(struct pci_dev *dev)
|
static int hpt3x3_reinit_one(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
|
struct ata_host *host = dev_get_drvdata(&dev->dev);
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
rc = ata_pci_device_do_resume(dev);
|
||||||
|
if (rc)
|
||||||
|
return rc;
|
||||||
|
|
||||||
hpt3x3_init_chipset(dev);
|
hpt3x3_init_chipset(dev);
|
||||||
return ata_pci_device_resume(dev);
|
|
||||||
|
ata_host_resume(host);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue