[COMMON] fimc-is2: trigger smp_multi_input when group canceled
authorWooyeon Kim <wooy88.kim@samsung.com>
Fri, 22 Mar 2019 03:54:59 +0000 (12:54 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:24:51 +0000 (11:24 +0800)
 - when group shot cancelled which uses a smp_multi_input (EX>MCSC)
   not triggered smp causes a ISP shot thread stuck

 PR JIRA ID: CPR-856

CRs-fixed: (CR)

Change-Id: I078444ef532d5fb419e6edc87429a7489779d86b
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1326260
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c

index 2d02a1cf197d7cfe989815894ad48aab692d897f..3fe65817bef55a8fd67019a855256ce837efc916 100644 (file)
@@ -597,6 +597,9 @@ void fimc_is_group_subdev_cancel(struct fimc_is_group *group,
 #endif
                                }
                        } while (sub_frame && flush);
+
+                       if (sub_vctx->video->try_smp)
+                               up(&sub_vctx->video->smp_multi_input);
                }
 
                group = group->child;