Skip to content

Commit c7954aa

Browse files
Andrzej Hajdadaeinki
authored andcommitted
drm/exynos: kill mode_set_nofb callback
All Exynos CRTCs are fully configured by .enable callback. The only users of mode_set_nofb actually did nothing in their callbacks - they immediately returned because devices were in suspend state - mode_set_nofb is always called on disabled device. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent 2949390 commit c7954aa

4 files changed

Lines changed: 0 additions & 14 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ static void decon_disable(struct exynos_drm_crtc *crtc)
581581
static const struct exynos_drm_crtc_ops decon_crtc_ops = {
582582
.enable = decon_enable,
583583
.disable = decon_disable,
584-
.commit = decon_commit,
585584
.enable_vblank = decon_enable_vblank,
586585
.disable_vblank = decon_disable_vblank,
587586
.atomic_begin = decon_atomic_begin,

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,6 @@ static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
4949
}
5050
}
5151

52-
static void
53-
exynos_drm_crtc_mode_set_nofb(struct drm_crtc *crtc)
54-
{
55-
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
56-
57-
if (exynos_crtc->ops->commit)
58-
exynos_crtc->ops->commit(exynos_crtc);
59-
}
60-
6152
static int exynos_crtc_atomic_check(struct drm_crtc *crtc,
6253
struct drm_crtc_state *state)
6354
{
@@ -93,7 +84,6 @@ static void exynos_crtc_atomic_flush(struct drm_crtc *crtc,
9384
static const struct drm_crtc_helper_funcs exynos_crtc_helper_funcs = {
9485
.enable = exynos_drm_crtc_enable,
9586
.disable = exynos_drm_crtc_disable,
96-
.mode_set_nofb = exynos_drm_crtc_mode_set_nofb,
9787
.atomic_check = exynos_crtc_atomic_check,
9888
.atomic_begin = exynos_crtc_atomic_begin,
9989
.atomic_flush = exynos_crtc_atomic_flush,

‎drivers/gpu/drm/exynos/exynos_drm_drv.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ struct exynos_drm_plane_config {
115115
*
116116
* @enable: enable the device
117117
* @disable: disable the device
118-
* @commit: set current hw specific display mode to hw.
119118
* @enable_vblank: specific driver callback for enabling vblank interrupt.
120119
* @disable_vblank: specific driver callback for disabling vblank interrupt.
121120
* @atomic_check: validate state
@@ -130,7 +129,6 @@ struct exynos_drm_crtc;
130129
struct exynos_drm_crtc_ops {
131130
void (*enable)(struct exynos_drm_crtc *crtc);
132131
void (*disable)(struct exynos_drm_crtc *crtc);
133-
void (*commit)(struct exynos_drm_crtc *crtc);
134132
int (*enable_vblank)(struct exynos_drm_crtc *crtc);
135133
void (*disable_vblank)(struct exynos_drm_crtc *crtc);
136134
u32 (*get_vblank_counter)(struct exynos_drm_crtc *crtc);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,6 @@ static void fimd_dp_clock_enable(struct exynos_drm_clk *clk, bool enable)
928928
static const struct exynos_drm_crtc_ops fimd_crtc_ops = {
929929
.enable = fimd_enable,
930930
.disable = fimd_disable,
931-
.commit = fimd_commit,
932931
.enable_vblank = fimd_enable_vblank,
933932
.disable_vblank = fimd_disable_vblank,
934933
.atomic_begin = fimd_atomic_begin,

0 commit comments

Comments
 (0)