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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Aug 2018 19:35:24 +0000 (14:35 -0500)
commit53a53f8687faf492df2644d8c18ff0217fc18730
treed7ab0001fd31a69ad0b4487d14cce083afb9450c
parent620a0d27b211aa03d3f99accfdd58b88e6e0504c
drm/amd/display: Read back max backlight value at boot

[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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c