summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRichard Zhu <r65037@freescale.com>2011-12-14 13:11:39 +0800
committerRichard Zhu <r65037@freescale.com>2011-12-15 10:14:17 +0800
commit7d1547c3125e40b6fc4c8340529c5e5e441a9a71 (patch)
tree6547d8d9230698b6573d4f9928fceb1085f727cb /arch
parentc82f51202ddb67576fe916d056a653445fcdecf4 (diff)
ENGR00170244-6 ARM: AHCI: Enable PDDQ mode on mx53 smd 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')
-rw-r--r--arch/arm/mach-mx5/board-mx53_smd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_smd.c b/arch/arm/mach-mx5/board-mx53_smd.c
index 3f7091c4cdda..50fec0737b36 100644
--- a/arch/arm/mach-mx5/board-mx53_smd.c
+++ b/arch/arm/mach-mx5/board-mx53_smd.c
@@ -558,9 +558,9 @@ static int mx53_smd_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);