mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
DCE-KMD: FSM: Rename init/deinit functions
- This is a follow-up CL to address comments for I19e10bb890a4ab6d011df4380ab3a6d5fe92c696 - Rename init/deinit functions to indicate that they are not thread safe. - Also add this note to function documentations. JIRA TDS-16126 Change-Id: Ic9d1e19a28ef940cb7fbcdc9c923fb61446e0463 Signed-off-by: anupamg <anupamg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3248426 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Mahesh Kumar <mahkumar@nvidia.com> Reviewed-by: Arun Swain <arswain@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -490,13 +490,16 @@ void dce_fsm_stop(struct tegra_dce *d)
|
||||
}
|
||||
|
||||
/**
|
||||
* dce_fsm_init - Init the FSM
|
||||
* dce_fsm_init_unlocked - Init the FSM
|
||||
*
|
||||
* @d : Pointer to tegra_dce struct.
|
||||
*
|
||||
* Return : 0 if successful else error code.
|
||||
*
|
||||
* Note: This function is not thread safe and should be called only once
|
||||
* during initialization.
|
||||
*/
|
||||
int dce_fsm_init(struct tegra_dce *d)
|
||||
int dce_fsm_init_unlocked(struct tegra_dce *d)
|
||||
{
|
||||
int ret = 0;
|
||||
struct dce_fsm_info *fsm = &d->fsm_info;
|
||||
@@ -515,13 +518,16 @@ int dce_fsm_init(struct tegra_dce *d)
|
||||
}
|
||||
|
||||
/**
|
||||
* dce_fsm_deinit - DeInit the FSM
|
||||
* dce_fsm_deinit_unlocked - DeInit the FSM
|
||||
*
|
||||
* @d : Pointer to tegra_dce struct.
|
||||
*
|
||||
* Return : void
|
||||
*
|
||||
* Note: This function is not thread safe and should be called only once
|
||||
* during de-initialization.
|
||||
*/
|
||||
void dce_fsm_deinit(struct tegra_dce *d)
|
||||
void dce_fsm_deinit_unlocked(struct tegra_dce *d)
|
||||
{
|
||||
struct dce_fsm_info *fsm = &d->fsm_info;
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ int dce_driver_init(struct tegra_dce *d)
|
||||
goto err_sw_init;
|
||||
}
|
||||
|
||||
ret = dce_fsm_init(d);
|
||||
ret = dce_fsm_init_unlocked(d);
|
||||
if (ret) {
|
||||
dce_os_err(d, "dce FSM init failed");
|
||||
goto err_fsm_init;
|
||||
@@ -113,7 +113,7 @@ void dce_driver_deinit(struct tegra_dce *d)
|
||||
{
|
||||
/* TODO : Reset DCE ? */
|
||||
|
||||
dce_fsm_deinit(d);
|
||||
dce_fsm_deinit_unlocked(d);
|
||||
|
||||
dce_os_work_cond_sw_resource_deinit(d);
|
||||
|
||||
|
||||
@@ -83,10 +83,10 @@ struct dce_admin_send_msg_params {
|
||||
struct dce_ipc_message *msg;
|
||||
};
|
||||
|
||||
int dce_fsm_init(struct tegra_dce *d);
|
||||
int dce_fsm_init_unlocked(struct tegra_dce *d);
|
||||
void dce_fsm_start(struct tegra_dce *d);
|
||||
void dce_fsm_stop(struct tegra_dce *d);
|
||||
void dce_fsm_deinit(struct tegra_dce *d);
|
||||
void dce_fsm_deinit_unlocked(struct tegra_dce *d);
|
||||
int dce_fsm_post_event(struct tegra_dce *d,
|
||||
enum dce_fsm_event_id_type event,
|
||||
void *data);
|
||||
|
||||
Reference in New Issue
Block a user