]> 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)
committerRiham Haidar <rhaidar@nvidia.com>
Tue, 13 May 2014 20:39:56 +0000 (13:39 -0700)
commita6c9ce8f39deb2af976ab3a587182711dae0fc70
treeef1bda0742ffef4a7ca30ce018f4473040db807b
parent0b0fa33d528fdc3252489d792a3dabc00eae51f6
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/408238
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Tested-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/video/tegra/host/host1x/host1x.c