mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
drm/nouveau: tidy connector hotplug handler, punt messages to debug
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
46959b7790
commit
68c9918479
1 changed files with 6 additions and 15 deletions
|
@ -921,22 +921,13 @@ nouveau_connector_hotplug(void *data, int plugged)
|
||||||
struct drm_connector *connector = data;
|
struct drm_connector *connector = data;
|
||||||
struct drm_device *dev = connector->dev;
|
struct drm_device *dev = connector->dev;
|
||||||
|
|
||||||
NV_INFO(dev, "%splugged %s\n", plugged ? "" : "un",
|
NV_DEBUG(dev, "%splugged %s\n", plugged ? "" : "un",
|
||||||
drm_get_connector_name(connector));
|
drm_get_connector_name(connector));
|
||||||
|
|
||||||
if (connector->encoder && connector->encoder->crtc &&
|
|
||||||
connector->encoder->crtc->enabled) {
|
|
||||||
struct nouveau_encoder *nv_encoder = nouveau_encoder(connector->encoder);
|
|
||||||
struct drm_encoder_helper_funcs *helper =
|
|
||||||
connector->encoder->helper_private;
|
|
||||||
|
|
||||||
if (nv_encoder->dcb->type == OUTPUT_DP) {
|
|
||||||
if (plugged)
|
if (plugged)
|
||||||
helper->dpms(connector->encoder, DRM_MODE_DPMS_ON);
|
drm_helper_connector_dpms(connector, DRM_MODE_DPMS_ON);
|
||||||
else
|
else
|
||||||
helper->dpms(connector->encoder, DRM_MODE_DPMS_OFF);
|
drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
drm_helper_hpd_irq_event(dev);
|
drm_helper_hpd_irq_event(dev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue