Loading drivers/gpu/drm/msm/sde/sde_encoder_phys_vid.c +8 −2 Original line number Diff line number Diff line Loading @@ -645,11 +645,17 @@ static int sde_encoder_phys_vid_control_vblank_irq( SDE_EVT32(DRMID(phys_enc->parent), enable, atomic_read(&phys_enc->vblank_refcount)); if (enable && atomic_inc_return(&phys_enc->vblank_refcount) == 1) if (enable && atomic_inc_return(&phys_enc->vblank_refcount) == 1) { ret = sde_encoder_helper_register_irq(phys_enc, INTR_IDX_VSYNC); else if (!enable && atomic_dec_return(&phys_enc->vblank_refcount) == 0) if (ret) atomic_dec_return(&phys_enc->vblank_refcount); } else if (!enable && atomic_dec_return(&phys_enc->vblank_refcount) == 0) { ret = sde_encoder_helper_unregister_irq(phys_enc, INTR_IDX_VSYNC); if (ret) atomic_inc_return(&phys_enc->vblank_refcount); } end: if (ret) { Loading Loading
drivers/gpu/drm/msm/sde/sde_encoder_phys_vid.c +8 −2 Original line number Diff line number Diff line Loading @@ -645,11 +645,17 @@ static int sde_encoder_phys_vid_control_vblank_irq( SDE_EVT32(DRMID(phys_enc->parent), enable, atomic_read(&phys_enc->vblank_refcount)); if (enable && atomic_inc_return(&phys_enc->vblank_refcount) == 1) if (enable && atomic_inc_return(&phys_enc->vblank_refcount) == 1) { ret = sde_encoder_helper_register_irq(phys_enc, INTR_IDX_VSYNC); else if (!enable && atomic_dec_return(&phys_enc->vblank_refcount) == 0) if (ret) atomic_dec_return(&phys_enc->vblank_refcount); } else if (!enable && atomic_dec_return(&phys_enc->vblank_refcount) == 0) { ret = sde_encoder_helper_unregister_irq(phys_enc, INTR_IDX_VSYNC); if (ret) atomic_inc_return(&phys_enc->vblank_refcount); } end: if (ret) { Loading