[COMMON] fimc-is2: Removed unused code - HACK from previous hardware
authorSunmi Lee <carrotsm.lee@samsung.com>
Sun, 17 Jun 2018 07:43:55 +0000 (16:43 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:22 +0000 (17:05 +0900)
Change-Id: I514f36739fcc730d3c93108b726bc9724c62abb4
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.h
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c

index b994ea0fde790261a6b58e51b5219db9c16f756b..95fec55678baa4d7f1857362dee0139a27a6eaa1 100644 (file)
@@ -685,10 +685,6 @@ int fimc_is_hardware_probe(struct fimc_is_hardware *hardware,
 
        }
 
-#ifdef HW_BUG_WA_NO_CONTOLL_PER_FRAME
-       sema_init(&hardware->smp_mcsc_hw_bug, 1);
-#endif
-
 #if defined(SOC_PAF0)
        hw_id = DEV_HW_PAF0;
        hw_slot = fimc_is_hw_slot_id(hw_id);
index d26ad62c7453f9bafe2b6fcac2afc658e2ca8eb3..10debc9187e60b76b687f0f6b1ee93f01df8bdbe 100644 (file)
@@ -360,9 +360,6 @@ struct fimc_is_hardware {
        atomic_t                        bug_count;
        atomic_t                        log_count;
 
-#ifdef HW_BUG_WA_NO_CONTOLL_PER_FRAME
-       struct semaphore                smp_mcsc_hw_bug;
-#endif
        bool                            video_mode;
        /* fast read out in hardware */
        bool                            hw_fro_en;
index 4821f52103b6947b0c35aad39f8b281dd59c69ec..f8cc7c596f3e396301b3d184be0e41d5be76d704 100644 (file)
@@ -18,9 +18,6 @@
 spinlock_t     shared_output_slock;
 static ulong hw_mcsc_out_configured = 0xFFFF;
 #define HW_MCSC_OUT_CLEARED_ALL (MCSC_OUTPUT_MAX)
-#ifdef HW_BUG_WA_NO_CONTOLL_PER_FRAME
-static bool flag_mcsc_hw_bug_lock;
-#endif
 
 static int fimc_is_hw_mcsc_rdma_cfg(struct fimc_is_hw_ip *hw_ip, struct fimc_is_frame *frame);
 static void fimc_is_hw_mcsc_wdma_cfg(struct fimc_is_hw_ip *hw_ip, struct fimc_is_frame *frame);
@@ -794,15 +791,6 @@ static int fimc_is_hw_mcsc_shot(struct fimc_is_hw_ip *hw_ip, struct fimc_is_fram
        lindex = frame->shot->ctl.vendor_entry.lowIndexParam;
        hindex = frame->shot->ctl.vendor_entry.highIndexParam;
 
-#ifdef HW_BUG_WA_NO_CONTOLL_PER_FRAME
-       /* S/W WA for Lhotse MCSC EVT0 HW BUG*/
-       ret = down_interruptible(&hardware->smp_mcsc_hw_bug);
-       if (ret)
-               mserr_hw("smp_mcsc_hw_bug fail", instance, hw_ip);
-       else
-               flag_mcsc_hw_bug_lock = true;
-#endif
-
        if (hardware->video_mode)
                hw_mcsc->djag_input_source = DEV_HW_MCSC0;
        else
@@ -1275,9 +1263,6 @@ void fimc_is_hw_mcsc_frame_done(struct fimc_is_hw_ip *hw_ip, struct fimc_is_fram
        u32 index;
        int instance = atomic_read(&hw_ip->instance);
        bool flag_get_meta = true;
-#ifdef HW_BUG_WA_NO_CONTOLL_PER_FRAME
-       struct fimc_is_hardware *hardware;
-#endif
        ulong flags = 0;
 
        FIMC_BUG_VOID(!hw_ip->priv_info);
@@ -1292,18 +1277,6 @@ void fimc_is_hw_mcsc_frame_done(struct fimc_is_hw_ip *hw_ip, struct fimc_is_fram
                fimc_is_scaler_set_ysum_enable(hw_ip->regs, false);
        }
 
-#ifdef HW_BUG_WA_NO_CONTOLL_PER_FRAME
-       hardware = hw_ip->hardware;
-
-       if (flag_mcsc_hw_bug_lock) {
-               flag_mcsc_hw_bug_lock = false;
-               msdbg_hw(2, "mcsc_status = %x, %x\n", instance, hw_ip,
-                       fimc_is_scaler_get_idle_status(hw_ip->regs, DEV_HW_MCSC0),
-                       fimc_is_scaler_get_idle_status(hw_ip->regs, DEV_HW_MCSC1));
-               up(&hardware->smp_mcsc_hw_bug);
-       }
-#endif
-
        switch (done_type) {
        case IS_SHOT_SUCCESS:
                framemgr = hw_ip->framemgr;