There is a possibility which g2d block power off
while scaler is running. A scaler is in the g2d block.
In interrupt handler, rm_runtim functions, pm_runtime_get
or pm_runtime_put, are uesed as asynchronous mode.
But since a wating job can be called in interrupt handler,
g2d block power is turned off due to the asyncchronous
pm_runtime_put function while the job is performing.
Therefore, the pm_runtime_put should be called after
the wating job which performs in irq handler is done.
Change-Id: If342b2cc4b57714d6183486b4b54b1b21b1c1472
Signed-off-by: Won Jung <w00.jung@samsung.com>
clear_bit(DEV_RUN, &sc->state);
clear_bit(CTX_RUN, &ctx->flags);
- sc_clk_power_disable(sc);
-
if (ctx->context_type == SC_CTX_V4L2_TYPE) {
BUG_ON(ctx != v4l2_m2m_get_curr_priv(sc->m2m.m2m_dev));
sc_run_next_job(sc);
+ sc_clk_power_disable(sc);
isr_unlock:
spin_unlock(&sc->slock);