]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/nouveau/kms: drop dpms off/on in response to hotplug
authorBen Skeggs <bskeggs@redhat.com>
Fri, 4 Nov 2016 07:20:35 +0000 (17:20 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:45 +0000 (14:04 +1000)
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>
drivers/gpu/drm/nouveau/nouveau_connector.c

index c1084088f9e4e048ae386a1fdf53b393e407e650..1bdfb8f0f382da7eafec360a8c45cc76159bd093 100644 (file)
@@ -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);
        }