summaryrefslogtreecommitdiff
path: root/drivers/ata/ahci-tegra.c
diff options
context:
space:
mode:
authorYen Lin <yelin@nvidia.com>2013-01-03 15:01:56 -0800
committerEric Brower <ebrower@nvidia.com>2013-01-04 14:21:54 -0800
commitc319d0e904e6bff6e6c89d3c8cf651949c379925 (patch)
treeb815a33b9774c1163b057427654bba1eab1a18bf /drivers/ata/ahci-tegra.c
parent8bd060e546c9c7f4296caca52ea35a3ccd2c953a (diff)
arm: tegra: sata: Fix LP0 resume problem
- Fix a bug in ahci-tegra.c when checking if SATA is on when resuming - Add codes to support PM315 which uses LDO1 regulator for SATA rails bug 1206518 Change-Id: Iaa910b1948fbcf5e45491977fd8ed0b313d2e0ae Signed-off-by: Yen Lin <yelin@nvidia.com> Reviewed-on: http://git-master/r/188441 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Allen Martin <amartin@nvidia.com> Reviewed-by: Peng Wu <pengw@nvidia.com> Tested-by: Peng Wu <pengw@nvidia.com> Reviewed-by: Eric Brower <ebrower@nvidia.com>
Diffstat (limited to 'drivers/ata/ahci-tegra.c')
-rw-r--r--drivers/ata/ahci-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci-tegra.c b/drivers/ata/ahci-tegra.c
index 39cf4acf0ae6..c90472827b9b 100644
--- a/drivers/ata/ahci-tegra.c
+++ b/drivers/ata/ahci-tegra.c
@@ -926,7 +926,7 @@ static int tegra_ahci_controller_resume(struct platform_device *pdev)
}
spin_lock_irqsave(&host->lock, flags);
- if (!tegra_hpriv->pg_state == SATA_ON) {
+ if (tegra_hpriv->pg_state == SATA_ON) {
dev_dbg(host->dev, "resume: SATA already powered on\n");
} else {
dev_dbg(host->dev, "resume: powering on SATA...\n");