]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: cache the EDID for eDP panels
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 14 Jun 2012 19:28:33 +0000 (15:28 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 16 Jun 2012 13:39:02 +0000 (15:39 +0200)
commit7aa0ff546d31ea8d8c6d8f62ed3f45756b646b9e
tree51543b813773c65f397774dbb496e5d1363d7c92
parentdd1456223c1542f0d49ae61c6d72ae25f8e0f76d
drm/i915: cache the EDID for eDP panels

They aren't going anywhere, and probing on DDC can cause the panel to
blank briefly, so read them up front and cache them for later queries.

v2: fix potential NULL derefs in intel_dp_get_edid_modes and
    intel_dp_get_edid (Jani)
    copy full EDID length, including extension blocks (Takashi)
    free EDID on teardown (Takashi)
v3: malloc a new EDID buffer that's big enough for the memcpy (Chris)
v4: change handling of NULL EDIDs, just preserve the NULL behavior
    across detects and mode list fetches rather than trying to re-fetch
    the EDID (Chris)
v5: be glad that Chris is around to remind me to hit C-x C-s before
    committing.

References: https://bugs.freedesktop.org/show_bug.cgi?id=46856
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c