]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
platform: t210: padctl: sata idle detector
authorTW Chiu <twchiu@nvidia.com>
Thu, 6 Aug 2015 07:43:09 +0000 (15:43 +0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sat, 10 Oct 2015 10:14:00 +0000 (03:14 -0700)
commitf0d3f9fc1c9abc3c26f74cf5abf2835a254fbde0
treedd86ebc006515bc4da1221668214caa690bafa6e
parentd5f9baa44a4aeec1b4e4f47d93d375f6590d6f92
platform: t210: padctl: sata idle detector

Power down SATA idle detector to save power.

If there is no drive found during boot, SATA driver will be unloaded.
Since SATA driver is unloaded, there is no chance for it to program
registers to save power after LP0 cycle.

In this change, we power down SATA idle detector from PADCTL driver
as part of UPHY PLL initialization during early boot and resume.
Later, SATA driver can power up idle detector when necessary.

Bug 200126755

Change-Id: I26e74c7cccb0ac8d6d9a84ecbaad15ec23ba38c0
Signed-off-by: TW Chiu <twchiu@nvidia.com>
Reviewed-on: http://git-master/r/779675
(cherry picked from commit e9f60a963783b09b6a2543af0cd6540b5c532f1a)
Reviewed-on: http://git-master/r/811595
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
drivers/platform/tegra/tegra_usb_pad_ctrl.c