]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
uphy: t210: clean up PLLs deinit functions
authorBH Hsieh <bhsieh@nvidia.com>
Thu, 8 Jun 2017 02:47:42 +0000 (10:47 +0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sat, 24 Jun 2017 01:52:26 +0000 (18:52 -0700)
commitb767582bf0425bdeab4b99af6739e0ad629bff9c
tree2a63f8e08342f53cf7060fd67434282e5885b27a
parent67a073ab2abcb9cf239101fb298c3b3d6ca8afda
uphy: t210: clean up PLLs deinit functions

UPHY driver should not assert reset or update regs of
PLLE and PEX/SATA PLLs when they're in HW control.

Removed PLLs deinit functions to avoid it.
Invoking clk_disable_unprepare(uphy->plle) in
suspend_noirq only updates PLLE enable_count as
clk_plle_tegra210_enable won't update PLLE regs if
it's in HW control.

PLLE enable_count is not balanced if system didn't
reach SC7, added check in tegra21x_padctl_uphy_resume
to hadle it properly.

Bug 200305623
Bug 200305881

Change-Id: I6e1726beeba8e361e8556c91ab70e661b8b9b529
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
(cherry picked from commit 116565fcc2af8262c834cc80d59e891df435f4af)
Reviewed-on: http://git-master/r/1499128
Reviewed-by: Hans Yang <hansy@nvidia.com>
Tested-by: Hans Yang <hansy@nvidia.com>
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/pinctrl/pinctrl-tegra21x-padctl-uphy.c