drm/debugfs: add an "edid_override" file per connector
authorThomas Wood <thomas.wood@intel.com>
Wed, 18 Jun 2014 16:52:33 +0000 (17:52 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 19 Jun 2014 06:56:28 +0000 (08:56 +0200)
commit4cf2b28146713d39f78bd62002a8ab00075c63b7
tree15ca4887226be1bd45cd3334a4d0d2d383e855bb
parent30f6570798f6c897df4f1f2c676d803728bfec27
drm/debugfs: add an "edid_override" file per connector

Add a file to debugfs for each connector to allow the EDID to be
overridden.

v2: Copy ubuf before accessing it and reject invalid length data. (David
    Herrmann)
    Ensure override_edid is reset when a new EDID value is written.
    (David Herrmann)
    Fix the debugfs file permissions. (David Herrmann)

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_debugfs.c
drivers/gpu/drm/drm_probe_helper.c
include/drm/drm_crtc.h