Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos/decon5433: kill BIT_IRQS_ENABLED

BIT_IRQS_ENABLED flag duplicates drm_vblank_crtc::refcount, it could be
safely removed.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Andrzej Hajda and committed by
Inki Dae
3ba80845 f8172eb3

+7 -15
+7 -15
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
··· 49 49 50 50 enum decon_flag_bits { 51 51 BIT_CLKS_ENABLED, 52 - BIT_IRQS_ENABLED, 53 52 BIT_WIN_UPDATED, 54 53 BIT_SUSPENDED 55 54 }; ··· 97 98 if (test_bit(BIT_SUSPENDED, &ctx->flags)) 98 99 return -EPERM; 99 100 100 - if (!test_and_set_bit(BIT_IRQS_ENABLED, &ctx->flags)) { 101 - val = VIDINTCON0_INTEN; 102 - if (ctx->out_type & IFTYPE_I80) 103 - val |= VIDINTCON0_FRAMEDONE; 104 - else 105 - val |= VIDINTCON0_INTFRMEN | VIDINTCON0_FRAMESEL_FP; 101 + val = VIDINTCON0_INTEN; 102 + if (ctx->out_type & IFTYPE_I80) 103 + val |= VIDINTCON0_FRAMEDONE; 104 + else 105 + val |= VIDINTCON0_INTFRMEN | VIDINTCON0_FRAMESEL_FP; 106 106 107 - writel(val, ctx->addr + DECON_VIDINTCON0); 108 - } 107 + writel(val, ctx->addr + DECON_VIDINTCON0); 109 108 110 109 return 0; 111 110 } ··· 115 118 if (test_bit(BIT_SUSPENDED, &ctx->flags)) 116 119 return; 117 120 118 - if (test_and_clear_bit(BIT_IRQS_ENABLED, &ctx->flags)) 119 - writel(0, ctx->addr + DECON_VIDINTCON0); 121 + writel(0, ctx->addr + DECON_VIDINTCON0); 120 122 } 121 123 122 124 /* return number of starts/ends of frame transmissions since reset */ ··· 484 488 set_bit(BIT_CLKS_ENABLED, &ctx->flags); 485 489 486 490 decon_swreset(ctx); 487 - 488 - /* if vblank was enabled status, enable it again. */ 489 - if (test_and_clear_bit(BIT_IRQS_ENABLED, &ctx->flags)) 490 - decon_enable_vblank(ctx->crtc); 491 491 492 492 decon_commit(ctx->crtc); 493 493 }