[COMMON] fimc-is2: Fix a bug of finding setfile offset
authorSunmi Lee <carrotsm.lee@samsung.com>
Fri, 8 Jun 2018 02:26:40 +0000 (11:26 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:04:58 +0000 (17:04 +0900)
Change-Id: Ief04f265044641854b7a46c0aad6d07978854c4a
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c

index d9716455b996652fdf748d23b99891cc1e17e859..bbc34e13da4b29b3d4f0bf1aa3bc9fddcb0c64cb 100644 (file)
@@ -3010,6 +3010,12 @@ int fimc_is_hardware_load_setfile(struct fimc_is_hardware *hardware, ulong addr,
 
                        if (!test_bit(hw_ip->id, &hardware->hw_map[instance])) {
                                msdbg_hw(1, "skip parsing at not mapped hw_ip", instance, hw_ip);
+                               if (hw_slot) {
+                                       unsigned long base = header.num_setfile_base;
+                                       size_t blk_size = sizeof(u32);
+
+                                       setfile_table_idx = (u32)*(ulong *)(base + (ip * blk_size));
+                               }
                                continue;
                        }