aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2008-02-25 17:31:10 -0500
committerJeff Garzik <jeff@garzik.org>2008-02-25 17:31:10 -0500
commit72ad6ec48989d4b5477128e739b960be11155036 (patch)
tree33e30ece72786a88b90847828b273a5438763808
parentc5c61bda5ecceaa0f16d326cd2c2147468a4c443 (diff)
Revert "power_state: get rid of write-only variable in SATA"
This reverts commit 559bbe6cbd0d8c68d40076a5f7dc98e3bf5864b2. Michael S. Tsirkin reports that this changes breaks suspend/resume. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/ata/libata-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index b57fad3eb24c..4fbcce758b04 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -6567,6 +6567,8 @@ int ata_host_suspend(struct ata_host *host, pm_message_t mesg)
6567 ata_lpm_enable(host); 6567 ata_lpm_enable(host);
6568 6568
6569 rc = ata_host_request_pm(host, mesg, 0, ATA_EHI_QUIET, 1); 6569 rc = ata_host_request_pm(host, mesg, 0, ATA_EHI_QUIET, 1);
6570 if (rc == 0)
6571 host->dev->power.power_state = mesg;
6570 return rc; 6572 return rc;
6571} 6573}
6572 6574
@@ -6585,6 +6587,7 @@ void ata_host_resume(struct ata_host *host)
6585{ 6587{
6586 ata_host_request_pm(host, PMSG_ON, ATA_EH_SOFTRESET, 6588 ata_host_request_pm(host, PMSG_ON, ATA_EH_SOFTRESET,
6587 ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET, 0); 6589 ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET, 0);
6590 host->dev->power.power_state = PMSG_ON;
6588 6591
6589 /* reenable link pm */ 6592 /* reenable link pm */
6590 ata_lpm_disable(host); 6593 ata_lpm_disable(host);