]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Jul 2014 13:01:30 +0000 (09:01 -0400)
commitc697b1b434b0c34b62392ee23378a2594507bd42
treeb03899037a65963c8e1ac686eecb11c30fff8d47
parent9ae9f6e78de916dfd8ec33c023270b4be54957b3
drm/radeon: set default bl level to something reasonable

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/atombios_encoders.c