Commit ffcaed1
drm/amd/display: Only read ACPI backlight caps once
[WHY]
Backlight caps are read already in amdgpu_dm_update_backlight_caps().
They may be updated by update_connector_ext_caps(). Reading again when
registering backlight device may cause wrong values to be used.
[HOW]
Use backlight caps already registered to the dm.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 148144f)
Cc: stable@vger.kernel.org1 parent 158f994 commit ffcaed1
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4908 | 4908 | | |
4909 | 4909 | | |
4910 | 4910 | | |
4911 | | - | |
| 4911 | + | |
4912 | 4912 | | |
4913 | 4913 | | |
4914 | 4914 | | |
| |||
4922 | 4922 | | |
4923 | 4923 | | |
4924 | 4924 | | |
4925 | | - | |
4926 | | - | |
| 4925 | + | |
| 4926 | + | |
4927 | 4927 | | |
4928 | | - | |
| 4928 | + | |
4929 | 4929 | | |
4930 | | - | |
| 4930 | + | |
4931 | 4931 | | |
4932 | 4932 | | |
4933 | 4933 | | |
4934 | | - | |
| 4934 | + | |
4935 | 4935 | | |
4936 | 4936 | | |
4937 | 4937 | | |
4938 | | - | |
| 4938 | + | |
4939 | 4939 | | |
4940 | 4940 | | |
4941 | 4941 | | |
| |||
0 commit comments