Setting SMFC_DEV_RUNNING is after configuring H/W to start working.
If IRQ is occurred before configuring the flag, the IRQ handler
is called before the flag set.
Change-Id: I3f408f569b7265eb368b9efc38cffdb13d79fff2
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
smfc_hwconfigure_2nd_tables(ctx, thumb_quality_factor);
smfc_hwconfigure_2nd_image(ctx);
}
- smfc_hwconfigure_start(ctx, restart_interval, !!enable_hwfc);
spin_lock_irqsave(&ctx->smfc->flag_lock, flags);
ctx->smfc->flags |= SMFC_DEV_RUNNING;
spin_unlock_irqrestore(&ctx->smfc->flag_lock, flags);
+ smfc_hwconfigure_start(ctx, restart_interval, !!enable_hwfc);
+
return;
err_hwfc:
if (!IS_ERR(ctx->smfc->clk_gate)) {