video: tegra: host: power module before access
authorBibek Basu <bbasu@nvidia.com>
Wed, 30 Jul 2014 06:27:09 +0000 (11:27 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Thu, 31 Jul 2014 17:36:21 +0000 (10:36 -0700)
commit8a370a3b55ee8750167174238ce316900409f558
treeca3df3f43daa8f59fa938fd65114f286bd5f0240
parent30f8d578556191ac90ca5d1ec4cba5f05cd690ce
video: tegra: host: power module before access

There could be race in refcount update leading to
access of module registers without enabling the clock
and power.This patch tries to catch such instances
and enables power.

Bug 1478467

Change-Id: Ia32da44bfcd7838e312815b6261ccadf4470a761
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/448701
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/video/tegra/host/nvhost_acm.c