CHROMIUM: drm: Allow 5 tries when probing DDC
authorDaniel Kurtz <djkurtz@chromium.org>
Tue, 17 Jul 2012 10:26:48 +0000 (18:26 +0800)
committerGerrit <chrome-bot@google.com>
Thu, 19 Jul 2012 06:30:00 +0000 (23:30 -0700)
commitc2c50bbb496a1032f016e4370ab518549e26f2e4
treea6de3189bf9bd88857db42b3f4551e02b16f01d6
parent24973d4ef1ec516b31217237831559d6355f0281
CHROMIUM: drm: Allow 5 tries when probing DDC

Some monitors consistently NAK the first EDID read request when connected
over a DVI-DP cable.  Thus, allow five NAK failures before giving up when
probing.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chromium-os:31301
TEST=Hot plug DP/DVI cable into lumpy;
TEST=Should show display on both monitors.

Change-Id: I339dde875893bddb9fb65bcf277993493aa56f20
Reviewed-on: https://gerrit.chromium.org/gerrit/27634
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Simon Que <sque@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Commit-Ready: <marcheu@google.com>
drivers/gpu/drm/drm_edid.c