]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit425f4ea2dbcd97f9dde68fe6e520f5ed61f06120
tree217516756f6804d655d3654747ce090043fa85dc
parent8b3fb3a1350bc1504bbc73672c483c1e670a063d
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