drm: Parse HDR metadata info from EDID
authorUma Shankar <uma.shankar@intel.com>
Thu, 16 May 2019 14:10:08 +0000 (19:40 +0530)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 May 2019 19:46:35 +0000 (22:46 +0300)
commite85959d6cbe08521942a6118568a38ac671e8d7f
treebd90115b580733d61769a1aec0b505dba16cfb25
parentc0b0ebb1719984513333f88d0c2a2bb3fdb61474
drm: Parse HDR metadata info from EDID

HDR metadata block is introduced in CEA-861.3 spec.
Parsing the same to get the panel's HDR metadata.

v2: Rebase and added Ville's POC changes to the patch.

v3: No Change

v4: Addressed Shashank's review comments

v5: Addressed Shashank's comment and added his RB.

v6: Addressed Jonas Karlman review comments.

v7: Adressed Ville's review comments and fixed the issue
with length handling.

v8: Put the length check as per the convention followed in
existing code, as suggested by Ville.

Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1558015817-12025-4-git-send-email-uma.shankar@intel.com
drivers/gpu/drm/drm_edid.c