drm/i915: Add parsing support for new MIPI blocks in VBT
authorShobhit Kumar <shobhit.kumar@intel.com>
Mon, 14 Apr 2014 05:30:34 +0000 (11:00 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Apr 2014 07:56:12 +0000 (09:56 +0200)
commitd3b542fcfc72d7724585e3fd2c5e75351bc3df47
tree5ec983f5813e2b26a50740e9862f436d77e9c7b6
parent773875bfb6737982903c42d1ee88cf60af80089c
drm/i915: Add parsing support for new MIPI blocks in VBT

The parser extracts the config block(#52) and sequence(#53) data
and store in private data structures.

v2: Address review comments by Jani
    - adjust code for the structure changes for bdb_mipi_config
    - add boundry and buffer overflow checks as suggested
    - use kmemdup instead of kmalloc and memcpy

v3: More strict check while parsing VBT
    - Ensure that at anytime we do not go beyond sequence block
      while parsing
    - On unknown element fail the whole parsing

v4: Style changes and spell check mostly as suggested by Jani

Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_bios.h