From: Sunmi Lee Date: Fri, 8 Jun 2018 02:26:40 +0000 (+0900) Subject: [COMMON] fimc-is2: Fix a bug of finding setfile offset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9538c58263b25c9760aace3fd5780e6a02ee9ff5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: Fix a bug of finding setfile offset Change-Id: Ief04f265044641854b7a46c0aad6d07978854c4a Signed-off-by: Sunmi Lee --- diff --git a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c index d9716455b996..bbc34e13da4b 100644 --- a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c +++ b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c @@ -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; }