[COMMON] fimc-is2: add to check MCSC irq time for debugging
authorSangHyun Sim <sanghyun.sim@samsung.com>
Tue, 19 Jun 2018 08:57:21 +0000 (17:57 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:51 +0000 (20:22 +0300)
Change-Id: I1287b16e21ecb1ff22d1345beec77da7f2e7e0eb
Signed-off-by: SangHyun Sim <sanghyun.sim@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c

index 4f723084e3afdd09311d09beeab2e34e956c954f..17f354145fb15c3116b46e1623253cffd7c7f0d1 100644 (file)
@@ -107,6 +107,9 @@ static int fimc_is_hw_mcsc_handle_interrupt(u32 id, void *context)
                        hw_ip->cur_e_int++;
                if (hw_ip->cur_e_int >= hw_ip->num_buffers) {
                        fimc_is_hw_mcsc_frame_done(hw_ip, NULL, IS_SHOT_SUCCESS);
+                       dbg_isr("[F:%d][S-E] %05llu us\n", hw_ip, hw_fcount,
+                               (hw_ip->debug_info[index].time[DEBUG_POINT_FRAME_END] -
+                               hw_ip->debug_info[index].time[DEBUG_POINT_FRAME_START]) / 1000);
 
                        if (!atomic_read(&hardware->streaming[hardware->sensor_position[instance]]))
                                sinfo_hw("[F:%d]F.E\n", hw_ip, hw_fcount);