drm/nouveau/drm/nouveau: Don't forget to cancel hpd_work on suspend/unload
authorLyude Paul <lyude@redhat.com>
Tue, 7 Aug 2018 21:32:48 +0000 (17:32 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 6 Sep 2018 20:54:27 +0000 (06:54 +1000)
commit2f7ca781fd382cf8dde73ed36dfdd93fd05b3332
tree782a963981c48fddd575cb89c961793617814565
parent79e765ad665da4b8aa7e9c878bd2fef837f6fea5
drm/nouveau/drm/nouveau: Don't forget to cancel hpd_work on suspend/unload

Currently, there's nothing in nouveau that actually cancels this work
struct. So, cancel it on suspend/unload. Otherwise, if we're unlucky
enough hpd_work might try to keep running up until the system is
suspended.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_display.h
drivers/gpu/drm/nouveau/nouveau_drm.c