]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: host: Disable pm runtime late
authorArto Merilainen <amerilainen@nvidia.com>
Mon, 12 May 2014 13:17:17 +0000 (16:17 +0300)
committerHarshada Kale <hkale@nvidia.com>
Tue, 20 May 2014 10:27:22 +0000 (03:27 -0700)
commit0c47fdc6b49695ed2261971c1e7b289d9a893823
tree90add0198476f6bee1aaa37dcf6fe9722a423995
parentb742d93eaa6d28f256dafac5c769edd38f27f903
video: tegra: host: Disable pm runtime late

Currently pm runtime is disabled for host1x right after we start
suspending. However, many devices (dc, avp, gk20a) depend on host1x
functionality and thereby they try to turn on host1x during suspend.

This patch modifies host1x suspend sequence to:
- Suspend late and resume early. This ensures that "normal" devices can
handle host1x properly.
- Re-enable host1x pm runtime immediately after genpd has disabled it.
This allows other devices to use pm runtime to enable host1x.
- Disable pm runtime in complete event. genpd will re-enable it
immediately after this has happened

Bug 200001342

Change-Id: Ic40cc3e257f9bde8e28eec27bb1a2ca939987ca7
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/408237
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
drivers/video/tegra/host/host1x/host1x.c