]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: host: Simplify keepalive flag
authorArto Merilainen <amerilainen@nvidia.com>
Tue, 11 Aug 2015 04:17:54 +0000 (07:17 +0300)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 2 Sep 2015 10:40:13 +0000 (03:40 -0700)
commit40c8b5d39a5d91c08c1719980efad5aa3fc896d2
tree22083c336378ce6eaab17b29f60ad9954a328ae0
parent1fec8891cff46493c33d9232fcf26c369dd569d7
video: tegra: host: Simplify keepalive flag

Currently nvhost uses pm_qos API for keeping certain devices
powered. However, due to API limitations this may lead to cases
where the device does not get powered immediately when setting
the flag - or the power domain remains powered after the constraint
has been removed.

This patch refactors code to use only pm_runtime for enabling or
disabling power-off functionality.

Change-Id: I2fc9dd2d4c62626da847d37d689b5fad1935a25e
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/781457
(cherry-picked from commit 1a1db66cc323f6ac9e1f0d95449078b8de2f0073)
Reviewed-on: http://git-master/r/789645
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/nvhost_acm.c
drivers/video/tegra/host/nvhost_acm.h