lib/edid: Add missing name descriptor presence flag

EDID parser internal flag c->has_name_descriptor
was never set. It was causing decode_edid() function
to return NON_CONFORMANT instead of CONFORMANT even when
EDID frame was correct.

Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: Ifdc723b892a0885cfca08dab1a5ef961463da289
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46694
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Jakub Czapiga 2020-10-23 15:54:46 +02:00 committed by Paul Fagerburg
parent 11298542cd
commit 43439f6d49
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ detailed_block(struct edid *result_edid, unsigned char *x, int in_extension,
extract_string(x + 5, extract_string(x + 5,
&c->has_valid_string_termination, &c->has_valid_string_termination,
EDID_ASCII_STRING_LENGTH)); EDID_ASCII_STRING_LENGTH));
c->has_name_descriptor = 1;
return 1; return 1;
case 0xFD: case 0xFD:
{ {