drm: Only set DPMS ON when actually configuring a mode
authorKeith Packard <keithp@keithp.com>
Fri, 4 Feb 2011 00:57:28 +0000 (16:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Feb 2011 17:58:01 +0000 (09:58 -0800)
commit811aaa55ba21ab37407018cfc01770d6b037d3fb
tree217516756f6804d655d3654747ce090043fa85dc
parent89840966c57967fa5b36151c83b7c13fc9c5b3fd
drm: Only set DPMS ON when actually configuring a mode

In drm_crtc_helper_set_config, instead of always forcing all outputs
to DRM_MODE_DPMS_ON, only set them if the CRTC is actually getting a
mode set, as any mode set will turn all outputs on.

This fixes https://lkml.org/lkml/2011/1/24/457

Signed-off-by: Keith Packard <keithp@keithp.com>
Cc: stable@kernel.org (2.6.37)
Reported-and-tested-by: Carlos R. Mafra <crmafra2@gmail.com>
Tested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/drm_crtc_helper.c