Re: pata_amd.c version 0.2.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrei Tanas wrote:
Tejun, Jeff,
In an attempt to enable suspend-to-ram (and correct resume) for NVidia MCP51
PATA device, I added
.suspend		= ata_pci_device_suspend,
.resume		= ata_pci_device_resume,
To amd_pci_driver struct. With this, first attempt to suspend results in an
error (-16 "device is still active"), and second attempt leads to oops. Do
you want to see console output and lspci for this?

Leaving .suspend = NULL and adding only
.resume		= ata_pci_device_resume,
seems to reset the device properly and work fine.
Before this was enabled, the box would suspend/resume fine than hang
silently about 30 seconds after resume.

You also need to set scsi_host_template->suspend/resume callbacks. Using default ata_scsi_device_suspend() and ata_scsi_device_resume() should be sufficient.

--
tejun
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux