diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-07-19 10:28:23 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-20 15:24:41 -0400 |
commit | 5b8eb0edba15b1685acbb76751fbb189de4ca310 (patch) | |
tree | 8dbdac0e577bfbd22afee24b90a53a38ee368605 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
parent | 9e7204beae8cbb75939acd640829e10979f2c920 (diff) |
drm/amdgpu/acpi: skip backlight events for DC
No change in behavior, just bail sooner.
Reviewed-by: Jim Qu <Jim.Qu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c index 455617813ec4..353993218f21 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |||
@@ -389,7 +389,9 @@ static int amdgpu_atif_handler(struct amdgpu_device *adev, | |||
389 | 389 | ||
390 | DRM_DEBUG_DRIVER("ATIF: %d pending SBIOS requests\n", count); | 390 | DRM_DEBUG_DRIVER("ATIF: %d pending SBIOS requests\n", count); |
391 | 391 | ||
392 | if (req.pending & ATIF_PANEL_BRIGHTNESS_CHANGE_REQUEST) { | 392 | /* todo: add DC handling */ |
393 | if ((req.pending & ATIF_PANEL_BRIGHTNESS_CHANGE_REQUEST) && | ||
394 | !amdgpu_device_has_dc_support(adev)) { | ||
393 | struct amdgpu_encoder *enc = atif->encoder_for_bl; | 395 | struct amdgpu_encoder *enc = atif->encoder_for_bl; |
394 | 396 | ||
395 | if (enc) { | 397 | if (enc) { |