Skip to content

Commit

Permalink
drm/vmwgfx: Add our connectors to sysfs
Browse files Browse the repository at this point in the history
Some user-space apps expects to find them there.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
  • Loading branch information
Thomas Hellstrom committed Dec 4, 2013
1 parent 308d17e commit 6a0a7a9
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
Original file line number Diff line number Diff line change
@@ -75,6 +75,7 @@ void vmw_display_unit_cleanup(struct vmw_display_unit *du)
vmw_surface_unreference(&du->cursor_surface);
if (du->cursor_dmabuf)
vmw_dmabuf_unreference(&du->cursor_dmabuf);
drm_sysfs_connector_remove(&du->connector);
drm_crtc_cleanup(&du->crtc);
drm_encoder_cleanup(&du->encoder);
drm_connector_cleanup(&du->connector);
2 changes: 2 additions & 0 deletions drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
Original file line number Diff line number Diff line change
@@ -371,6 +371,8 @@ static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit)
encoder->possible_crtcs = (1 << unit);
encoder->possible_clones = 0;

(void) drm_sysfs_connector_add(connector);

drm_crtc_init(dev, crtc, &vmw_legacy_crtc_funcs);

drm_mode_crtc_set_gamma_size(crtc, 256);
2 changes: 2 additions & 0 deletions drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
Original file line number Diff line number Diff line change
@@ -467,6 +467,8 @@ static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit)
encoder->possible_crtcs = (1 << unit);
encoder->possible_clones = 0;

(void) drm_sysfs_connector_add(connector);

drm_crtc_init(dev, crtc, &vmw_screen_object_crtc_funcs);

drm_mode_crtc_set_gamma_size(crtc, 256);

0 comments on commit 6a0a7a9

Please sign in to comment.