drm/i915/bios: Fix the sequence size calculations for MIPI seq v3
authorJani Nikula <jani.nikula@intel.com>
Thu, 14 Jan 2016 15:12:07 +0000 (17:12 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 15 Jan 2016 09:38:11 +0000 (11:38 +0200)
commit6765bd6dd28eb3c087e5011a2944c00872dd5906
treebf41d0e85189a6afcba6c3badf2ab32494d885e4
parent965fd602a6436f689f4f2fe40a6789582778ccd5
drm/i915/bios: Fix the sequence size calculations for MIPI seq v3

Two errors in a single line. The size was read from the wrong offset,
and the end index didn't take the five bytes for sequence byte and size
of sequence into account. Fix it all, and break up the calculations a
bit to make it clearer.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reported-and-tested-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Fixes: 2a33d93486f2 ("drm/i915/bios: add support for MIPI sequence block v3")
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452784327-27258-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_bios.c