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

Commit 85b98a4c authored by Jani Nikula's avatar Jani Nikula Committed by Daniel Vetter
Browse files

drm/i915/ddi: warn instead of oops on invalid ddi encoder type



It's more useful to limp on than bring the kernel down. Hitting this is
a more likely event with BXT DSI, although care should be taken not to
call the function for DSI.

Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 7bad74d5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -322,8 +322,7 @@ static void ddi_get_encoder_port(struct intel_encoder *intel_encoder,
		*dig_port = NULL;
		*port = PORT_E;
	} else {
		DRM_ERROR("Invalid DDI encoder type %d\n", type);
		BUG();
		WARN(1, "Invalid DDI encoder type %d\n", type);
	}
}