From: SangHyun Sim Date: Thu, 28 Jun 2018 08:05:04 +0000 (+0900) Subject: [COMMON] fimc-is2: add to check CSI irq time for debugging X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d92fd30792ade27bba4d59f6da0abb27e148d542;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: add to check CSI irq time for debugging Change-Id: Ia60a0e9d24798fb50d75071053dee62528e1eecb Signed-off-by: SangHyun Sim --- diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi.h b/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi.h index 6392984010fd..bb4ff1325da7 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi.h +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi.h @@ -116,6 +116,7 @@ struct fimc_is_device_csi { atomic_t vvalid; /* set 1 while vvalid period */ #endif + char name[FIMC_IS_STR_LEN]; }; struct fimc_is_device_csi_dma { diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c index 8cb252ee31e5..3b17b076ee54 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c @@ -54,7 +54,7 @@ inline void csi_frame_start_inline(struct fimc_is_device_csi *csi) /* frame start interrupt */ csi->sw_checker = EXPECT_FRAME_END; atomic_inc(&csi->fcount); - dbg_csiisr("<%d %d ", csi->instance, + dbg_isr("<%d %d ", csi, csi->instance, atomic_read(&csi->fcount)); atomic_inc(&csi->vvalid); { @@ -68,7 +68,7 @@ inline void csi_frame_start_inline(struct fimc_is_device_csi *csi) static inline void csi_frame_line_inline(struct fimc_is_device_csi *csi) { - dbg_csiisr("-%d %d-", csi->instance, + dbg_isr("-%d %d-", csi, csi->instance, atomic_read(&csi->fcount)); /* frame line interrupt */ tasklet_schedule(&csi->tasklet_csis_line); @@ -76,7 +76,7 @@ static inline void csi_frame_line_inline(struct fimc_is_device_csi *csi) static inline void csi_frame_end_inline(struct fimc_is_device_csi *csi) { - dbg_csiisr("%d %d>", csi->instance, + dbg_isr("%d %d>", csi, csi->instance, atomic_read(&csi->fcount)); /* frame end interrupt */ csi->sw_checker = EXPECT_FRAME_START; @@ -1055,7 +1055,7 @@ static irqreturn_t fimc_is_isr_csi_dma(int irq, void *data) dma_frame_end |= 1 << vc; } - dbg_csiisr("DE %d %X\n", csi->instance, dma_frame_end); + dbg_isr("DE %d %X\n", csi, csi->instance, dma_frame_end); /* DMA End */ if (dma_frame_end) { @@ -2041,6 +2041,7 @@ int fimc_is_csi_probe(void *parent, u32 instance) csi->csi_dma = &core->csi_dma; csi->instance = instance; + snprintf(csi->name, FIMC_IS_STR_LEN, "CSI%d", csi->instance); /* default state setting */ clear_bit(CSIS_SET_MULTIBUF_VC1, &csi->state);