summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_connector.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2016-11-04 10:20:35 +0300
committerBen Skeggs <bskeggs@redhat.com>2016-11-07 07:04:45 +0300
commitd000edd36012e2bb921aa005e65ef990d81754da (patch)
tree1e7d268166b0bdebc86c99793567e8459e6f8101 /drivers/gpu/drm/nouveau/nouveau_connector.c
parent1608a0fbb6923bf6989c90f0466ca2b87c722871 (diff)
downloadlinux-d000edd36012e2bb921aa005e65ef990d81754da.tar.xz
drm/nouveau/kms: drop dpms off/on in response to hotplug
This primarily existed to ensure the DP link got retrained, and is now unnecessary as that's handled by NVKM already. For anything beyond that, we send an event to userspace and let it decide on an appropriate action to take. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_connector.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_connector.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index c1084088f9e4..1bdfb8f0f382 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -1001,14 +1001,6 @@ nouveau_connector_hotplug(struct nvif_notify *notify)
bool plugged = (rep->mask != NVIF_NOTIFY_CONN_V0_UNPLUG);
NV_DEBUG(drm, "%splugged %s\n", plugged ? "" : "un", name);
-
- mutex_lock(&drm->dev->mode_config.mutex);
- if (plugged)
- drm_helper_connector_dpms(connector, DRM_MODE_DPMS_ON);
- else
- drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF);
- mutex_unlock(&drm->dev->mode_config.mutex);
-
drm_helper_hpd_irq_event(connector->dev);
}