From 7d14f40bc1bc2f0bfe72ce947b01ecd45717c528 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 3 Jun 2015 15:15:38 +0530 Subject: video: tegra: host: update syncpoint APIs to include platform_device Update below syncpoint APIs to receive pointer to platform_device of either host1x or its child : nvhost_get_syncpt_client_managed() nvhost_syncpt_put_ref_ext() Remove below API : nvhost_get_syncpt_host_managed_by_name() Update below API to optionally receive names for host managed syncpoints : nvhost_get_syncpt_host_managed() If syncpoint name is specified by caller, then use user specified name. Otherwise form a name depending on name of device and parameter passed. Use new APIs as applicable to get or put a syncpoint Bug 1611482 Change-Id: I9e9f94deb3e0b86cb08a0c8b280398e99629adf6 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/751907 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Arto Merilainen --- include/linux/nvhost.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h index 2351efdb8..1de617af3 100644 --- a/include/linux/nvhost.h +++ b/include/linux/nvhost.h @@ -390,11 +390,11 @@ int nvhost_module_add_domain(struct generic_pm_domain *domain, extern const struct dev_pm_ops nvhost_module_pm_ops; /* public host1x sync-point management APIs */ -u32 nvhost_get_syncpt_client_managed(const char *syncpt_name); +u32 nvhost_get_syncpt_client_managed(struct platform_device *pdev, + const char *syncpt_name); u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev, - u32 param); -u32 nvhost_get_syncpt_host_managed_by_name(const char *syncpt_name); -void nvhost_syncpt_put_ref_ext(u32 id); + u32 param, const char *syncpt_name); +void nvhost_syncpt_put_ref_ext(struct platform_device *pdev, u32 id); const char *nvhost_syncpt_get_name(struct platform_device *dev, int id); u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs); void nvhost_syncpt_cpu_incr_ext(struct platform_device *dev, u32 id); -- cgit v1.2.2