]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00170244-5 ARM: AHCI: Enable PDDQ mode on mx53 loco board
authorRichard Zhu <r65037@freescale.com>
Wed, 14 Dec 2011 05:11:07 +0000 (13:11 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:38 +0000 (08:33 +0200)
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>
arch/arm/mach-mx5/board-mx53_loco.c

index 56f88d185a95bf4d1ab4db74be262b8789a61dcd..257933af01776747496138c5b012226e00610e7a 100755 (executable)
@@ -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);