drm/i915/bios: add support for MIPI sequence block v3
authorJani Nikula <jani.nikula@intel.com>
Mon, 11 Jan 2016 13:15:02 +0000 (15:15 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 11 Jan 2016 17:18:06 +0000 (19:18 +0200)
commit2a33d93486f247924e46b5402b8ffb43d1b9b38c
treebdcc65e0333c073947b148907e6547873773328d
parent4b42dfbbd8e5f0cd8b7a3f16d719046d363f6b57
drm/i915/bios: add support for MIPI sequence block v3

The changes since the sequence block v2 are:

* The whole MIPI bios data block has a separate 32-bit size field since
  v3, stored after the version. This facilitates big sequences.

* The size of the panel specific sequence blocks has grown to 32
  bits. This facilitates big sequences.

* The elements within sequences now have an 8-bit size field following
  the operation byte. This facilitates skipping unknown new operation
  bytes, i.e. forward compatibility.

v2 (of the patch): use DRM_ERROR for unknown operation byte
v3 (of the patch): even more bounds checking (Ville)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452518102-3154-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_dsi_panel_vbt.c