]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/radeon: Restore LCD backlight level on resume (>= R5xx)
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 28 Sep 2015 09:16:31 +0000 (18:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:25 +0000 (14:49 -0700)
commit5a633828b4b2bef343826afcb0a70770c4911c55
treeeacad2f25027b0cb84ceb1335bb9c5dabf7ccf58
parent60a09aef456ef590762d47da9c25650e230e2f85
drm/radeon: Restore LCD backlight level on resume (>= R5xx)

commit 4281f46ef839050d2ef60348f661eb463c21cc2e upstream.

Instead of only enabling the backlight (which seems to set it to max
brightness), just re-set the current backlight level, which also takes
care of enabling the backlight if necessary.

Only the radeon_atom_encoder_dpms_dig part tested on a Kaveri laptop,
the radeon_atom_encoder_dpms_avivo part is only compile tested.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/atombios_encoders.c