summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx5
diff options
context:
space:
mode:
authorRichard Zhu <r65037@freescale.com>2011-12-14 13:11:07 +0800
committerJustin Waters <justin.waters@timesys.com>2012-07-03 16:55:56 -0400
commita049433ed5140bf6a6470983b2481cc51f817f2e (patch)
treef6779027fcd7756e733a3eaf6f515affa4f79775 /arch/arm/mach-mx5
parenta25f34b7636597e46ad72376de00e2dd3130cd37 (diff)
ENGR00170244-5 ARM: AHCI: Enable PDDQ mode on mx53 loco board
In order to save the power consumption, enable the PDDQ mode of AHCI PHY when there is no sata disk on the port Signed-off-by: Richard Zhu <r65037@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx5')
-rwxr-xr-xarch/arm/mach-mx5/board-mx53_loco.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_loco.c b/arch/arm/mach-mx5/board-mx53_loco.c
index 56f88d185a95..257933af0177 100755
--- a/arch/arm/mach-mx5/board-mx53_loco.c
+++ b/arch/arm/mach-mx5/board-mx53_loco.c
@@ -480,9 +480,9 @@ static int mx53_loco_sata_init(struct device *dev, void __iomem *addr)
tmpdata = clk_get_rate(clk) / 1000;
clk_put(clk);
- sata_init(addr, tmpdata);
-
- return ret;
+ ret = sata_init(addr, tmpdata);
+ if (ret == 0)
+ return ret;
release_sata_ref_clk:
clk_disable(sata_ref_clk);