]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:15:20 +0000 (15:15 -0800)
commitf322c1dbf090eb7fe60ed5cb0e40cd55d670b765
tree910040df4e9dd9b56b320a3f7a9d91ae69db05ba
parent134fee9c4369ad67df2e3f0e6ec66c4fb4fb4e85
drm: Only set DPMS ON when actually configuring a mode

commit 811aaa55ba21ab37407018cfc01770d6b037d3fb upstream.

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>
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/drm_crtc_helper.c