[COMMON] fimc-is2: added a mutex sysreg_lock for sysreg sfr settings
authorEunyoung Lee <ey470.lee@samsung.com>
Fri, 20 Apr 2018 07:22:51 +0000 (16:22 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:43:33 +0000 (17:43 +0900)
Change-Id: I47b4cf055be04b4149260daef4972a2ce9e942c4
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-resourcemgr.c
drivers/media/platform/exynos/fimc-is2/fimc-is-resourcemgr.h

index 5d4b75bb502a6d1e3d1598de3954ce3b8322d873..cc1717f4b9198d4621ffe13b4ca2bb919a4ed0fa 100644 (file)
@@ -1076,6 +1076,7 @@ int fimc_is_resourcemgr_probe(struct fimc_is_resourcemgr *resourcemgr,
 
        /* rsc mutex init */
        mutex_init(&resourcemgr->rsc_lock);
+       mutex_init(&resourcemgr->sysreg_lock);
 
        /* temperature monitor unit */
        resourcemgr->tmu_notifier.notifier_call = fimc_is_tmu_notifier;
index a304d528c9bc8ca8b1cef3b9ebab08775c45215a..54352ff2222ea4a251c486c65397a074d93d0598 100644 (file)
@@ -148,6 +148,8 @@ struct fimc_is_resourcemgr {
 
        /* for critical section at get/put */
        struct mutex                            rsc_lock;
+       /* for sysreg setting */
+       struct mutex                            sysreg_lock;
 };
 
 int fimc_is_resourcemgr_probe(struct fimc_is_resourcemgr *resourcemgr, void *private_data, struct platform_device *pdev);