]> git.baikalelectronics.ru Git - kernel.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2015 17:45:55 +0000 (13:45 -0400)
commitb8a4a45c0bc6f7f17f6f516fa75658afe6399990
tree06f985cba80c64ce44762a8f08412b714b5bd233
parent89608c3b3a8704ec375f09f58265e4f98fc4a17b
drm/radeon: Restore LCD backlight level on resume (>= R5xx)

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.

Cc: stable@vger.kernel.org
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_encoders.c