OSDN Git Service

drm/edid: Iterate through all DispID ext blocks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 27 May 2020 13:03:09 +0000 (16:03 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Jul 2020 18:45:06 +0000 (21:45 +0300)
commit7f261afdcfae363192e3eef52dd34855cc149c15
treecd4edb8c53527afb16fdb1535f08930a6a1e4238
parent8873cfa384055d0348c03161420b1e9b6c1dc5d0
drm/edid: Iterate through all DispID ext blocks

Apparently there are EDIDs in the wild with multiple DispID extension
blocks. Iterate through them all.

In one particular case the tile information is specicied in the
second DispID ext block, and since the current parser only looks
at the first DispID ext block we don't notice that we're dealing
with a tiled display.

While at it change a few functions to return void since we have
no use for the errno.

References: https://gitlab.freedesktop.org/drm/intel/-/issues/27
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200527130310.27099-2-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/drm_edid.c