Patchwork SATA / AHCI: Do not play with the link PM during suspend to RAM

login
register
mail settings
Submitter Tejun Heo
Date Aug. 17, 2010, 12:09 p.m.
Message ID <4C6A7BFD.1070604@gmail.com>
Download mbox | patch
Permalink /patch/61882/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Tejun Heo - Aug. 17, 2010, 12:09 p.m.
Hello,

On 08/17/2010 02:10 PM, Stephan Diestelhorst wrote:
> If you want me to test anything... let me know. Since I do not know
> much about the ATA code, I do not know what to change where. (A simple
> grep for sd_suspend in drivers/ata didn't turn up anything.)

Oh, sure, the following should be enough.  Thanks.

Patch

diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 8802e48..892ccc7 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2456,6 +2456,8 @@  static int sd_suspend(struct device *dev, pm_message_t mesg)
 	struct scsi_disk *sdkp = scsi_disk_get_from_dev(dev);
 	int ret = 0;

+	return 0;
+
 	if (!sdkp)
 		return 0;	/* this can happen */