]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Read back max backlight value at boot
authorDavid Francis <David.Francis@amd.com>
Wed, 18 Jul 2018 20:03:30 +0000 (16:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:46:54 +0000 (09:46 +0200)
commitac5395827d489b1a9484b2474cb1dba72fb9bd98
treee17ef99977559e01e4f54c350e0dcf48c9450fd5
parent5bd634167f2f2f28b8c280935200df07897ad580
drm/amd/display: Read back max backlight value at boot

[ Upstream commit 53a53f8687faf492df2644d8c18ff0217fc18730 ]

[Why]
If there is no program explicitly setting the backlight
brightness (for example, during a minimal install of linux), the
hardware defaults to maximum brightness but the backlight_device
defaults to 0 value.  Thus, settings displays the wrong brightness
value.

[How]
When creating the backlight device, set brightness to max

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c