drm/i915/ddi: warn instead of oops on invalid ddi encoder type
authorJani Nikula <jani.nikula@intel.com>
Tue, 29 Sep 2015 07:24:25 +0000 (10:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:20:40 +0000 (10:20 +0200)
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: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c

index 0e46679fde5a0a50eabb526cc3b70a3ddd522fd0..fdcb4562c8cea30e21427afc5fbcce65fe84960d 100644 (file)
@@ -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);
        }
 }