Skip to content

Commit de6231f

Browse files
Roman Ligregkh
authored andcommitted
drm/amd/display: Fix OLED brightness control on eDP
commit dab6058 upstream. [Why] After commit ("drm/amdgpu/display: add support for multiple backlights") number of eDPs is defined while registering backlight device. However the panel's extended caps get updated once before register call. That leads to regression with extended caps like oled brightness control. [How] Update connector ext caps after register_backlight_device Fixes: 7fd13ba ("drm/amdgpu/display: add support for multiple backlights") Link: https://www.reddit.com/r/AMDLaptops/comments/qst0fm/after_updating_to_linux_515_my_brightness/ Signed-off-by: Roman Li <Roman.Li@amd.com> Tested-by: Samuel Čavoj <samuel@cavoj.net> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Jasdeep Dhillon <Jasdeep.Dhillon@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent edd145c commit de6231f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3846,6 +3846,9 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
38463846
} else if (dc_link_detect(link, DETECT_REASON_BOOT)) {
38473847
amdgpu_dm_update_connector_after_detect(aconnector);
38483848
register_backlight_device(dm, link);
3849+
3850+
if (dm->num_of_edps)
3851+
update_connector_ext_caps(aconnector);
38493852
if (amdgpu_dc_feature_mask & DC_PSR_MASK)
38503853
amdgpu_dm_set_psr_caps(link);
38513854
}

0 commit comments

Comments
 (0)