Skip to content

Commit 3ba8084

Browse files
Andrzej Hajdadaeinki
authored andcommitted
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>
1 parent f8172eb commit 3ba8084

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

‎drivers/gpu/drm/exynos/exynos5433_drm_decon.c‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ static const char * const decon_clks_name[] = {
4949

5050
enum decon_flag_bits {
5151
BIT_CLKS_ENABLED,
52-
BIT_IRQS_ENABLED,
5352
BIT_WIN_UPDATED,
5453
BIT_SUSPENDED
5554
};
@@ -98,15 +97,13 @@ static int decon_enable_vblank(struct exynos_drm_crtc *crtc)
9897
if (test_bit(BIT_SUSPENDED, &ctx->flags))
9998
return -EPERM;
10099

101-
if (!test_and_set_bit(BIT_IRQS_ENABLED, &ctx->flags)) {
102-
val = VIDINTCON0_INTEN;
103-
if (ctx->out_type & IFTYPE_I80)
104-
val |= VIDINTCON0_FRAMEDONE;
105-
else
106-
val |= VIDINTCON0_INTFRMEN | VIDINTCON0_FRAMESEL_FP;
100+
val = VIDINTCON0_INTEN;
101+
if (ctx->out_type & IFTYPE_I80)
102+
val |= VIDINTCON0_FRAMEDONE;
103+
else
104+
val |= VIDINTCON0_INTFRMEN | VIDINTCON0_FRAMESEL_FP;
107105

108-
writel(val, ctx->addr + DECON_VIDINTCON0);
109-
}
106+
writel(val, ctx->addr + DECON_VIDINTCON0);
110107

111108
return 0;
112109
}
@@ -118,8 +115,7 @@ static void decon_disable_vblank(struct exynos_drm_crtc *crtc)
118115
if (test_bit(BIT_SUSPENDED, &ctx->flags))
119116
return;
120117

121-
if (test_and_clear_bit(BIT_IRQS_ENABLED, &ctx->flags))
122-
writel(0, ctx->addr + DECON_VIDINTCON0);
118+
writel(0, ctx->addr + DECON_VIDINTCON0);
123119
}
124120

125121
/* return number of starts/ends of frame transmissions since reset */
@@ -489,10 +485,6 @@ static void decon_enable(struct exynos_drm_crtc *crtc)
489485

490486
decon_swreset(ctx);
491487

492-
/* if vblank was enabled status, enable it again. */
493-
if (test_and_clear_bit(BIT_IRQS_ENABLED, &ctx->flags))
494-
decon_enable_vblank(ctx->crtc);
495-
496488
decon_commit(ctx->crtc);
497489
}
498490

0 commit comments

Comments
 (0)