mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
drm/nouveau/kms: take mode_config mutex in connector hotplug path
fdo#93634 Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
2e7db87dee
commit
0a882cadbc
1 changed files with 3 additions and 0 deletions
|
|
@ -983,10 +983,13 @@ nouveau_connector_hotplug(struct nvif_notify *notify)
|
|||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue