drm/nouveau/drm/nouveau: Fix runtime PM leak in nv50_disp_atomic_commit()
authorLyude Paul <lyude@redhat.com>
Thu, 12 Jul 2018 17:02:53 +0000 (13:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 28 Jul 2018 05:55:41 +0000 (07:55 +0200)
commitd0bd2c70ffcbf83ad02d551ad6f1c1a1a6664ef1
tree0c9cb8bab854092a7005a209fc5ea7d25fac66f4
parent58113603a4ea409a2b77daa1e1caa663c648c748
drm/nouveau/drm/nouveau: Fix runtime PM leak in nv50_disp_atomic_commit()

commit e5d54f1935722f83df7619f3978f774c2b802cd8 upstream.

A CRTC being enabled doesn't mean it's on! It doesn't even necessarily
mean it's being used. This fixes runtime PM leaks on the P50 I've got
next to me.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nv50_display.c