drm/i915/sdvo: Check that we have space for the infoframe
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 10 Apr 2019 17:08:35 +0000 (20:08 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Jun 2019 17:40:14 +0000 (20:40 +0300)
commitb5716a4efe5cbaabcea2027656367ac5ba5addf9
tree3fe8a881d1390c00664a4a7b2c290b3e4e5dd3e4
parentdd6090f8780a213dfcb6ba5718c4e1057d69cb0c
drm/i915/sdvo: Check that we have space for the infoframe

Before we go writing the infoframe let's make sure we have
the space for it. Not that it really matters since the write
loop would just terminate early in that case.

v2: Check after the debug print and ++ (Chris)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190410170835.18867-1-ville.syrjala@linux.intel.com
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
drivers/gpu/drm/i915/intel_sdvo.c