drm/i915: Unify error handling for missing DDI buf trans tables
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Oct 2017 18:19:34 +0000 (21:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 19 Oct 2017 12:38:44 +0000 (15:38 +0300)
commit21b39d2a3adb798dc8dcbdb4abe23250ecfaf7e4
tree215be8f79b632ee89e4726fd932be2635a7e4155
parentedba48fdfc4770ee41d71e2c2c0360b15cca6567
drm/i915: Unify error handling for missing DDI buf trans tables

Handle missing buf trans tables, or out of bounds buf trans levels
the same way everywhere. These should never be hit under normal
conditions, but let's play it safe for now.

v2: Avoid the hdmi_level=-1 case (James)

Cc: James Ausmus <james.ausmus@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171018181934.4229-1-ville.syrjala@linux.intel.com
Reviewed-by: James Ausmus <james.ausmus@intel.com>
drivers/gpu/drm/i915/intel_ddi.c