]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/nouveau/drm/nouveau: Use pm_runtime_get_noresume() in connector_detect()
authorLyude Paul <lyude@redhat.com>
Wed, 15 Aug 2018 19:00:14 +0000 (15:00 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 6 Sep 2018 20:54:26 +0000 (06:54 +1000)
commit6833fb1ec120bf078e1a527c573a09d4de286224
treef1050734a0f212c9a6e25b0ccfd89ebf2cb34880
parent7fec8f5379fb6eddabc0aaef6d2304c366808f97
drm/nouveau/drm/nouveau: Use pm_runtime_get_noresume() in connector_detect()

It's true we can't resume the device from poll workers in
nouveau_connector_detect(). We can however, prevent the autosuspend
timer from elapsing immediately if it hasn't already without risking any
sort of deadlock with the runtime suspend/resume operations. So do that
instead of entirely avoiding grabbing a power reference.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Cc: stable@vger.kernel.org
Cc: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_connector.c