Commit 5c0038ef authored by Ramesh Gupta's avatar Ramesh Gupta Committed by Hari Kanigeri

Fix issues with notify_disable/restore Fix issues with notify_disable/restore

Signed-off-by: default avatarRamesh Gupta G <grgupta@ti.com>
parent 077c33eb
...@@ -328,9 +328,11 @@ u32 notify_disable(u16 proc_id) ...@@ -328,9 +328,11 @@ u32 notify_disable(u16 proc_id)
NOTIFY_DRIVERINITSTATUS_NOTDONE) { NOTIFY_DRIVERINITSTATUS_NOTDONE) {
WARN_ON(1); WARN_ON(1);
} else { } else {
drv_handle->disable_flag[notify_state.disable_depth] = if (drv_handle->fn_table.disable) {
(u32 *)drv_handle->fn_table.disable drv_handle->disable_flag[notify_state.disable_depth] =
(drv_handle, proc_id); (u32 *)drv_handle->fn_table.disable
(drv_handle, proc_id);
}
} }
} }
notify_state.disable_depth++; notify_state.disable_depth++;
...@@ -363,12 +365,8 @@ void notify_restore (u32 key, u16 proc_id) ...@@ -363,12 +365,8 @@ void notify_restore (u32 key, u16 proc_id)
notify_state.disable_depth--; notify_state.disable_depth--;
for (i = 0; i < notify_state.cfg.maxDrivers; i++) { for (i = 0; i < notify_state.cfg.maxDrivers; i++) {
drv_handle = &(notify_state.drivers[i]); drv_handle = &(notify_state.drivers[i]);
if (drv_handle->is_init != if (drv_handle->fn_table.restore)
NOTIFY_DRIVERINITSTATUS_NOTDONE) {
WARN_ON(1);
} else {
drv_handle->fn_table.restore(drv_handle, key, proc_id); drv_handle->fn_table.restore(drv_handle, key, proc_id);
}
} }
mutex_unlock(notify_state.gate_handle); mutex_unlock(notify_state.gate_handle);
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment