Commit 8a85fe11 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: get rid of some non-existing functions for ISP2401

There are no ia_css_set_system_mode() nor
ia_css_is_system_mode_suspend_or_resume() functions at the driver.

So, get rid of the code that would try to call it.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent c06e212d
......@@ -10648,12 +10648,6 @@ static enum ia_css_err load_primary_binaries(
sh_css_setup_queues();
ia_css_bufq_dump_queue_info();
#ifdef ISP2401
if (ia_css_is_system_mode_suspend_or_resume() == false) /* skip in suspend/resume flow */
{
ia_css_set_system_mode(IA_CSS_SYS_MODE_WORKING);
}
#endif
IA_CSS_LEAVE_ERR(err);
return err;
}
......@@ -10722,18 +10716,8 @@ static enum ia_css_err load_primary_binaries(
sh_css_hmm_buffer_record_uninit();
#ifndef ISP2401
/* clear pending param sets from refcount */
sh_css_param_clear_param_sets();
#else
if (ia_css_is_system_mode_suspend_or_resume() == false) /* skip in suspend/resume flow */
{
/* clear pending param sets from refcount */
sh_css_param_clear_param_sets();
ia_css_set_system_mode(
IA_CSS_SYS_MODE_INIT); /* System is initialized but not 'running' */
}
#endif
IA_CSS_LEAVE_ERR(err);
return err;
......@@ -11252,17 +11236,8 @@ static enum ia_css_err load_primary_binaries(
sh_css_hmm_buffer_record_init(void) {
int i;
#ifndef ISP2401
for (i = 0; i < MAX_HMM_BUFFER_NUM; i++) {
for (i = 0; i < MAX_HMM_BUFFER_NUM; i++)
sh_css_hmm_buffer_record_reset(&hmm_buffer_record[i]);
#else
if (ia_css_is_system_mode_suspend_or_resume() ==
false) { /* skip in suspend/resume flow */
for (i = 0; i < MAX_HMM_BUFFER_NUM; i++) {
sh_css_hmm_buffer_record_reset(&hmm_buffer_record[i]);
}
#endif
}
}
static void
......@@ -11270,29 +11245,14 @@ static enum ia_css_err load_primary_binaries(
int i;
struct sh_css_hmm_buffer_record *buffer_record = NULL;
#ifndef ISP2401
buffer_record = &hmm_buffer_record[0];
for (i = 0; i < MAX_HMM_BUFFER_NUM; i++) {
if (buffer_record->in_use) {
if (buffer_record->h_vbuf)
ia_css_rmgr_rel_vbuf(hmm_buffer_pool, &buffer_record->h_vbuf);
sh_css_hmm_buffer_record_reset(buffer_record);
#else
if (ia_css_is_system_mode_suspend_or_resume() ==
false) { /* skip in suspend/resume flow */
buffer_record = &hmm_buffer_record[0];
for (i = 0; i < MAX_HMM_BUFFER_NUM; i++) {
if (buffer_record->in_use) {
if (buffer_record->h_vbuf)
ia_css_rmgr_rel_vbuf(hmm_buffer_pool, &buffer_record->h_vbuf);
sh_css_hmm_buffer_record_reset(buffer_record);
}
buffer_record++;
#endif
}
#ifndef ISP2401
buffer_record++;
#endif
}
}
......
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