summaryrefslogtreecommitdiffstats
path: root/include/linux/nvhost.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-04-14 08:22:07 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-15 11:10:50 -0400
commitfed9d249fc3908947f6f5dcc75511b3e2a734f15 (patch)
tree83d3a18b5350786cd3f329761f57ea64155d3d33 /include/linux/nvhost.h
parent9871b23facb3e9b7bc3e0ce2c3d62959bb7b7ca2 (diff)
video: tegra: host: store data pointer for debug_dump_device callback
We currently call pdata->debug_dump_device() with NULL argument Instead of this, accept a void * arguement while registering the callback, and use this data as argument to callback Bug 200188753 Change-Id: I974f085c3393585a3dd5045b9e8fcf56c50778cb Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1126796 GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include/linux/nvhost.h')
-rw-r--r--include/linux/nvhost.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
index 73a4d4067..ade01a4ac 100644
--- a/include/linux/nvhost.h
+++ b/include/linux/nvhost.h
@@ -338,6 +338,7 @@ struct nvhost_device_data {
338 338
339 /* For loadable nvgpu module, we dynamically assign function 339 /* For loadable nvgpu module, we dynamically assign function
340 * pointer of gk20a_debug_dump_device once the module loads */ 340 * pointer of gk20a_debug_dump_device once the module loads */
341 void *debug_dump_data;
341 void (*debug_dump_device)(void *dev); 342 void (*debug_dump_device)(void *dev);
342 343
343 /* bandwidth manager client id for emc requests */ 344 /* bandwidth manager client id for emc requests */
@@ -595,7 +596,8 @@ static inline int nvhost_syncpt_create_fence_single_ext(
595 596
596static inline void nvhost_register_dump_device( 597static inline void nvhost_register_dump_device(
597 struct platform_device *dev, 598 struct platform_device *dev,
598 void (*nvgpu_debug_dump_device)(struct platform_device *)) 599 void (*nvgpu_debug_dump_device)(struct platform_device *),
600 void *data)
599{ 601{
600} 602}
601 603
@@ -608,12 +610,14 @@ static inline void nvhost_unregister_dump_device(struct platform_device *dev)
608#ifdef CONFIG_DEBUG_FS 610#ifdef CONFIG_DEBUG_FS
609void nvhost_register_dump_device( 611void nvhost_register_dump_device(
610 struct platform_device *dev, 612 struct platform_device *dev,
611 void (*nvgpu_debug_dump_device)(void *)); 613 void (*nvgpu_debug_dump_device)(void *),
614 void *data);
612void nvhost_unregister_dump_device(struct platform_device *dev); 615void nvhost_unregister_dump_device(struct platform_device *dev);
613#else 616#else
614static inline void nvhost_register_dump_device( 617static inline void nvhost_register_dump_device(
615 struct platform_device *dev, 618 struct platform_device *dev,
616 void (*nvgpu_debug_dump_device)(void *)) 619 void (*nvgpu_debug_dump_device)(void *),
620 void *data)
617{ 621{
618} 622}
619 623