]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2347c473d5faf1b99242194b46794ec603f2d442
tree215be8f79b632ee89e4726fd932be2635a7e4155
parent1ea15f3d9908beace3e8a71d457682c8e4d97308
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