From: Eunyoung Lee Date: Wed, 27 Jun 2018 10:03:04 +0000 (+0900) Subject: [COMMON] fimc-is2: added start/stop bcm debug sync with camera X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6dbb17d73d394d0b6651b8f8878233fee21f01ad;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: added start/stop bcm debug sync with camera Change-Id: I718692c5608277408a7ae77239ceda4bac5508ba Signed-off-by: Eunyoung Lee --- diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-resourcemgr.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-resourcemgr.c index 0d9afd29eb47..f1ba5a290f46 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-resourcemgr.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-resourcemgr.c @@ -49,6 +49,10 @@ #include #endif +#ifdef CONFIG_EXYNOS_BCM_DBG_GNR +#include +#endif + #include "fimc-is-resourcemgr.h" #include "fimc-is-hw.h" #include "fimc-is-debug.h" @@ -1333,6 +1337,10 @@ int fimc_is_resource_get(struct fimc_is_resourcemgr *resourcemgr, u32 rsc_type) err("fimc_is_resourcemgr_initmem is fail(%d)\n", ret); goto p_err; } +#endif +#ifdef CONFIG_EXYNOS_BCM_DBG_GNR + exynos_bcm_dbg_start(); + dbgd_resource("exynos bcm debug was started\n"); #endif } @@ -1634,6 +1642,10 @@ int fimc_is_resource_put(struct fimc_is_resourcemgr *resourcemgr, u32 rsc_type) if (atomic_read(&core->rsccount) == 1) { u32 current_min, current_max; +#ifdef CONFIG_EXYNOS_BCM_DBG_GNR + exynos_bcm_dbg_stop(CAMERA_DRIVER); + dbgd_resource("exynos bcm debug was stopped\n"); +#endif #ifdef ENABLE_DYNAMIC_MEM ret = fimc_is_resourcemgr_deinit_dynamic_mem(resourcemgr); if (ret)