OSDN Git Service

drm/radeon: set default bl level to something reasonable
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jul 2014 13:48:53 +0000 (09:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:00:06 +0000 (08:00 -0700)
commite1bb259863012b0498678e0c319a9420d2108215
tree8e733f3e051c56c79e51acdb6c2b1400fb408d24
parent4003b69e90b58f35a60061e6f78a4d98a6ff2727
drm/radeon: set default bl level to something reasonable

commit 201bb62402e0227375c655446ea04fcd0acf7287 upstream.

If the value in the scratch register is 0, set it to the
max level.  This fixes an issue where the console fb blanking
code calls back into the backlight driver on unblank and then
sets the backlight level to 0 after the driver has already
set the mode and enabled the backlight.

bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=81382
https://bugs.freedesktop.org/show_bug.cgi?id=70207

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: David Heidelberger <david.heidelberger@ixit.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/atombios_encoders.c