]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
media: tegra: nvavp: Fix corruption in secure playback after lp0
authorAllen Yu <alleny@nvidia.com>
Wed, 23 Apr 2014 17:39:37 +0000 (01:39 +0800)
committerSimone Willett <swillett@nvidia.com>
Sat, 26 Apr 2014 02:24:09 +0000 (19:24 -0700)
commita2b4b1f96d6c4b7b4b244b1d36b279fcdcc3199d
tree2c358b1425cc8241ca52d6766fa0115a983dbb4e
parente48e2408b42cc70c062afe0e8211dc16b89d1180
media: tegra: nvavp: Fix corruption in secure playback after lp0

If vde partition is powergated before suspend, access to BSEV registers
that happens immediately after lp0 exit will go wrong. This WAR unpowergate
vde partition in suspend callback and powergate it again in the first place
of resume callback so that we won't keep vde powergate always on. Resume of
vde if needed will be taken care of afterwards.

Bug 1502013

Change-Id: Iaf4c36ac377c64e8d09d56f79e6e946ec47c686b
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/401252
Tested-by: Praveen Kumar Reddy M.V. <pkreddy@nvidia.com>
Reviewed-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
drivers/media/platform/tegra/nvavp/nvavp_dev.c