Skip to content

Commit f8172eb

Browse files
Andrzej Hajdadaeinki
authored andcommitted
drm/exynos/decon5433: kill DECON_UPDATE workaround
Since fixing CMU code (drm/exynos/decon5433: fix CMU programming) DECON started behave predictable and does not need special care during DECON_UPDATE writes. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent c7954aa commit f8172eb

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ enum decon_flag_bits {
5151
BIT_CLKS_ENABLED,
5252
BIT_IRQS_ENABLED,
5353
BIT_WIN_UPDATED,
54-
BIT_SUSPENDED,
55-
BIT_REQUEST_UPDATE
54+
BIT_SUSPENDED
5655
};
5756

5857
struct decon_context {
@@ -399,7 +398,6 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc,
399398

400399
/* window enable */
401400
decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, ~0);
402-
set_bit(BIT_REQUEST_UPDATE, &ctx->flags);
403401
}
404402

405403
static void decon_disable_plane(struct exynos_drm_crtc *crtc,
@@ -412,7 +410,6 @@ static void decon_disable_plane(struct exynos_drm_crtc *crtc,
412410
return;
413411

414412
decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, 0);
415-
set_bit(BIT_REQUEST_UPDATE, &ctx->flags);
416413
}
417414

418415
static void decon_atomic_flush(struct exynos_drm_crtc *crtc)
@@ -429,8 +426,7 @@ static void decon_atomic_flush(struct exynos_drm_crtc *crtc)
429426
for (i = ctx->first_win; i < WINDOWS_NR; i++)
430427
decon_shadow_protect_win(ctx, i, false);
431428

432-
if (test_and_clear_bit(BIT_REQUEST_UPDATE, &ctx->flags))
433-
decon_set_bits(ctx, DECON_UPDATE, STANDALONE_UPDATE_F, ~0);
429+
decon_set_bits(ctx, DECON_UPDATE, STANDALONE_UPDATE_F, ~0);
434430

435431
if (ctx->out_type & IFTYPE_I80)
436432
set_bit(BIT_WIN_UPDATED, &ctx->flags);

0 commit comments

Comments
 (0)