summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2016-02-12 10:01:28 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2016-03-14 15:01:05 +0100
commit5ea1734827bb49a738c9d8bda783763d729bf233 (patch)
tree56f5662e5b115aa331b4acf995d250d322500d13 /drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
parent2e69b25bb12cfd32250684b600652589d823a96c (diff)
downloadlinux-5ea1734827bb49a738c9d8bda783763d729bf233.tar.gz
linux-5ea1734827bb49a738c9d8bda783763d729bf233.tar.xz
drm/vmwgfx: Send a hotplug event at master_set
Make sure drm clients (mostly the X server) are communicated the current layout when switched in. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index 0ee76e523a90..1ca90377581c 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -1204,6 +1204,7 @@ static int vmw_master_set(struct drm_device *dev,
}
dev_priv->active_master = vmaster;
+ drm_sysfs_hotplug_event(dev);
return 0;
}