summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2012-08-22 09:16:51 +0300
committerLokesh Pathak <lpathak@nvidia.com>2012-08-29 07:23:54 -0700
commit63644abd0d4ed41c5f6894e273a41968ea09694e (patch)
treed19df646761165e03a3c63374c0d5089bf083d96 /include
parent9c153df4f3b2ef23622ae3c1807f1e207cefd49b (diff)
video: tegra: host: Disable irq when clock gating
Disable host1x interrupts when clock gating host1x. This fixes a race where host1x interrupt was raised at the same time when host1x clock is turned off. Bug 1031724 Change-Id: I169cd5796608b8888a6b48ed99bb5da754559b2c Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/125129 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvhost.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
index c89d9b82af14..d7d8ad04653d 100644
--- a/include/linux/nvhost.h
+++ b/include/linux/nvhost.h
@@ -172,6 +172,10 @@ struct nvhost_driver {
/* Allocates a context handler for the device */
struct nvhost_hwctx_handler *(*alloc_hwctx_handler)(u32 syncpt,
u32 waitbase, struct nvhost_channel *ch);
+
+ /* Clock gating callbacks */
+ int (*prepare_clockoff)(struct nvhost_device *dev);
+ void (*finalize_clockon)(struct nvhost_device *dev);
};
extern int nvhost_driver_register(struct nvhost_driver *);