UPSTREAM: lib/edid.c: Differentiate between absent and non-conformant EDID

BUG=none
BRANCH=none
TEST=none

Change-Id: Iedd3c5ff51fd8488b48eb36dc50556169a7606e4
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 8c5884e8d7
Original-Change-Id: Id90aa210ff72092c4ab638a7bafb82bd11889bdc
Original-Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Reviewed-on: https://review.coreboot.org/19502
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/496052
This commit is contained in:
Arthur Heymans 2017-04-30 08:28:05 +02:00 committed by chrome-bot
commit ffdbb72fa5
7 changed files with 28 additions and 21 deletions

View file

@ -47,7 +47,7 @@ int ps8640_get_edid(uint8_t bus, uint8_t chip, struct edid *out)
}
}
if (decode_edid(edid, edid_size, out)) {
if (decode_edid(edid, edid_size, out) != EDID_CONFORMANT) {
printk(BIOS_INFO, "Failed to decode EDID.\n");
return -1;
}