groupmgr = device->groupmgr;
group = &device->group_paf;
+ if (!test_bit(FIMC_IS_GROUP_INIT, &group->state))
+ goto p_err;
+
ret = fimc_is_group_stop(groupmgr, group);
if (ret) {
- merr("fimc_is_group_stop is fail(%d)", device, ret);
+ if (ret == -EPERM)
+ ret = 0;
+ else
+ merr("fimc_is_group_stop is fail(%d)", device, ret);
goto p_err;
}
groupmgr = device->groupmgr;
group = &device->group_3aa;
+ if (!test_bit(FIMC_IS_GROUP_INIT, &group->state))
+ goto p_err;
+
ret = fimc_is_group_stop(groupmgr, group);
if (ret) {
- merr("fimc_is_group_stop is fail(%d)", device, ret);
+ if (ret == -EPERM)
+ ret = 0;
+ else
+ merr("fimc_is_group_stop is fail(%d)", device, ret);
goto p_err;
}
groupmgr = device->groupmgr;
group = &device->group_isp;
+ if (!test_bit(FIMC_IS_GROUP_INIT, &group->state))
+ goto p_err;
+
ret = fimc_is_group_stop(groupmgr, group);
if (ret) {
- merr("fimc_is_group_stop is fail(%d)", device, ret);
+ if (ret == -EPERM)
+ ret = 0;
+ else
+ merr("fimc_is_group_stop is fail(%d)", device, ret);
goto p_err;
}
groupmgr = device->groupmgr;
group = &device->group_dis;
+ if (!test_bit(FIMC_IS_GROUP_INIT, &group->state))
+ goto p_err;
+
ret = fimc_is_group_stop(groupmgr, group);
if (ret) {
- merr("fimc_is_group_stop is fail(%d)", device, ret);
+ if (ret == -EPERM)
+ ret = 0;
+ else
+ merr("fimc_is_group_stop is fail(%d)", device, ret);
goto p_err;
}
groupmgr = device->groupmgr;
group = &device->group_dcp;
+ if (!test_bit(FIMC_IS_GROUP_INIT, &group->state))
+ goto p_err;
+
ret = fimc_is_group_stop(groupmgr, group);
if (ret) {
- merr("fimc_is_group_stop is fail(%d)", device, ret);
+ if (ret == -EPERM)
+ ret = 0;
+ else
+ merr("fimc_is_group_stop is fail(%d)", device, ret);
goto p_err;
}
groupmgr = device->groupmgr;
group = &device->group_mcs;
+ if (!test_bit(FIMC_IS_GROUP_INIT, &group->state))
+ goto p_err;
+
ret = fimc_is_group_stop(groupmgr, group);
if (ret) {
- merr("fimc_is_group_stop is fail(%d)", device, ret);
+ if (ret == -EPERM)
+ ret = 0;
+ else
+ merr("fimc_is_group_stop is fail(%d)", device, ret);
goto p_err;
}
groupmgr = device->groupmgr;
group = &device->group_vra;
+ if (!test_bit(FIMC_IS_GROUP_INIT, &group->state))
+ goto p_err;
+
ret = fimc_is_group_stop(groupmgr, group);
if (ret) {
- merr("fimc_is_group_stop is fail(%d)", device, ret);
+ if (ret == -EPERM)
+ ret = 0;
+ else
+ merr("fimc_is_group_stop is fail(%d)", device, ret);
goto p_err;
}