mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
video: tegra: tsec: add api to clear init callback
DisplayRm when it unloads will call an API on the tsec driver to clear the previously registered init message callback Bug 3817626 Change-Id: I7d5bd16b3d1040f11d1a85bc2439176002c5a57b Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2818914 Reviewed-by: Sahil Patki <spatki@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
5889401827
commit
096b94b3db
@@ -624,3 +624,12 @@ FAIL:
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_COMMS(tsec_comms_set_init_cb);
|
EXPORT_SYMBOL_COMMS(tsec_comms_set_init_cb);
|
||||||
|
|
||||||
|
void tsec_comms_clear_init_cb(void)
|
||||||
|
{
|
||||||
|
tsec_plat_acquire_comms_mutex();
|
||||||
|
s_callbacks[RM_GSP_UNIT_INIT].cb_func = NULL;
|
||||||
|
s_callbacks[RM_GSP_UNIT_INIT].cb_ctx = NULL;
|
||||||
|
tsec_plat_release_comms_mutex();
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL_COMMS(tsec_comms_clear_init_cb);
|
||||||
|
|||||||
@@ -61,6 +61,16 @@ void tsec_comms_drain_msg(bool invoke_cb);
|
|||||||
*/
|
*/
|
||||||
int tsec_comms_set_init_cb(callback_func_t cb_func, void *cb_ctx);
|
int tsec_comms_set_init_cb(callback_func_t cb_func, void *cb_ctx);
|
||||||
|
|
||||||
|
/* @brief: Clear callback for init message
|
||||||
|
*
|
||||||
|
* usage: When DisplayRM is unloaded it would call this API to
|
||||||
|
* clear the init callback it previousy set.
|
||||||
|
*
|
||||||
|
* params[in]: NONE
|
||||||
|
* params[out]: NONE
|
||||||
|
*/
|
||||||
|
void tsec_comms_clear_init_cb(void);
|
||||||
|
|
||||||
/* @brief: Send the command upon receiving it by putting it into the
|
/* @brief: Send the command upon receiving it by putting it into the
|
||||||
* tsec queue. Also sets appropriate callback to be called when
|
* tsec queue. Also sets appropriate callback to be called when
|
||||||
* response arrives.
|
* response arrives.
|
||||||
|
|||||||
Reference in New Issue
Block a user