Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d56bf0b authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm/i915: Make encoder->mode_set callbacks optional



For a bunch of reasons we want to move away from the ->mode_set
callbacks: All hw state setup needs to move into ->enable hooks (so
that DOMS can do runtime pm) and all the configuration setup needs to
move into the compute_config functions.

To start with this make the enocer->mode_set callback optional.

Reviewed-by: default avatarImre Deak <imre.deak@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 98ec7739
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7210,6 +7210,8 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,
			encoder->base.base.id,
			drm_get_encoder_name(&encoder->base),
			mode->base.id, mode->name);

		if (encoder->mode_set)
			encoder->mode_set(encoder);
	}