diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-06-18 12:52:33 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-19 02:56:28 -0400 |
commit | 4cf2b28146713d39f78bd62002a8ab00075c63b7 (patch) | |
tree | 15ca4887226be1bd45cd3334a4d0d2d383e855bb /include/drm | |
parent | 30f6570798f6c897df4f1f2c676d803728bfec27 (diff) |
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>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index d4b0a6a4ad9b..857bbb1551f8 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -533,6 +533,7 @@ struct drm_connector { | |||
533 | 533 | ||
534 | /* forced on connector */ | 534 | /* forced on connector */ |
535 | enum drm_connector_force force; | 535 | enum drm_connector_force force; |
536 | bool override_edid; | ||
536 | uint32_t encoder_ids[DRM_CONNECTOR_MAX_ENCODER]; | 537 | uint32_t encoder_ids[DRM_CONNECTOR_MAX_ENCODER]; |
537 | struct drm_encoder *encoder; /* currently active encoder */ | 538 | struct drm_encoder *encoder; /* currently active encoder */ |
538 | 539 | ||