Commit b867570
drm/apple: Set backlight level indirectly if no mode is set
Fixes following warning when systemd-backlight restores the backlight
level on boot before a mode is set:
Call trace:
drm_atomic_helper_crtc_duplicate_state+0x58/0x74
drm_atomic_get_crtc_state+0x84/0x120
dcp_set_brightness+0xd8/0x21c [apple_dcp]
backlight_device_set_brightness+0x78/0x130
...
Signed-off-by: Janne Grunau <j@jannau.net>1 parent 94a27df commit b867570
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
| 175 | + | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
181 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
182 | 189 | | |
| 190 | + | |
| 191 | + | |
183 | 192 | | |
184 | 193 | | |
185 | 194 | | |
| |||
0 commit comments