video: tegra: host: gk20a: Do not defer ELPG init
authorNaveen Kumar S <nkumars@nvidia.com>
Fri, 21 Feb 2014 11:44:38 +0000 (16:44 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Fri, 21 Feb 2014 16:46:38 +0000 (08:46 -0800)
commitb9fabcf54144ed5e9ea99959f1e5abbbc2d1c2e2
treed995a80d8a7190c84695d279f9fbf296e6799f04
parentcaf5e6a459396aad35b1ef7a7e705a1679d09e4c
video: tegra: host: gk20a: Do not defer ELPG init

Currently the second phase of PMU initialisation runs asynchronously
with other code. This optimises the boot-up time, however, it may
cause unexpected race in PMU code as some functions are called while
the ELPG is still being initialised.

This patch modifies the ELPG initialisation to happen synchronously
as part of power on sequence.

Bug 1456985
Bug 1460116
Bug 1458353

Change-Id: Ic979b3e054a17c0bc6979da2cf03d98f8d416c26
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/368702
(cherry picked from commit 4100add7d80ff68669cec4f8f47b26e232dc7da5)
Reviewed-on: http://git-master/r/372853
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/video/tegra/host/gk20a/gk20a.c