edid: Don't set standard timings as supported if they're not

The set to say that a standard timing was supported was not properly in
the "if" test.  That meant that even when standard timings weren't
supported, we thought that they were.  That had the side effect of never
using the detailed mode.

BRANCH=none
BUG=chrome-os-partner:46998
TEST=Adafruit panel works now

Change-Id: Ib67735219fd28516857d9b63f1ba156573f1bea3
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/309521
This commit is contained in:
Douglas Anderson 2015-10-28 10:19:52 -07:00
commit 4e4c2816e2

View file

@ -1258,13 +1258,13 @@ int decode_edid(unsigned char *edid, int size, struct edid *out)
if (edid[0x23 + i / 8] & (1 << (7 - i % 8))) {
printk(BIOS_SPEW, " %dx%d@%dHz\n", established_timings[i].x,
established_timings[i].y, established_timings[i].refresh);
}
for (j = 0; j < NUM_KNOWN_MODES; j++) {
if (known_modes[j].ha == established_timings[i].x &&
known_modes[j].va == established_timings[i].y &&
known_modes[j].refresh == established_timings[i].refresh)
for (j = 0; j < NUM_KNOWN_MODES; j++) {
if (known_modes[j].ha == established_timings[i].x &&
known_modes[j].va == established_timings[i].y &&
known_modes[j].refresh == established_timings[i].refresh)
out->mode_is_supported[j] = 1;
}
}
}