diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0767-Revert-drm-amd-display-set-backlight-level-limit-to-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0767-Revert-drm-amd-display-set-backlight-level-limit-to-.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0767-Revert-drm-amd-display-set-backlight-level-limit-to-.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0767-Revert-drm-amd-display-set-backlight-level-limit-to-.patch new file mode 100644 index 00000000..8097f887 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0767-Revert-drm-amd-display-set-backlight-level-limit-to-.patch @@ -0,0 +1,40 @@ +From 3cbabbaf7928478a00d200fbbd8c4bfa36c1efcd Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Tue, 6 Nov 2018 16:06:32 -0500 +Subject: [PATCH 0767/2940] Revert "drm/amd/display: set backlight level limit + to 1" + +This reverts commit 0cafc82fae41531b0162150f9a97f2c74f97118f. + +This breaks some apps that assume 0 is minimum brightness. + +Revert for 4.20. This is fixed properly for drm-next/4.21 in: +"drm/amd: Don't fail on backlight = 0" +However, that patch depends on more extensive changes to the +backlight interface which are too invasive for -fixes. + +Fixes: Bugzilla: https://bugs.freedesktop.org/108668 +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +index 4372ea9e5aaf..492793722654 100644 +--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c ++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +@@ -1579,11 +1579,6 @@ static int amdgpu_dm_backlight_update_status(struct backlight_device *bd) + */ + uint32_t brightness = bd->props.brightness * 0x101; + +- /* +- * PWM interperts 0 as 100% rather than 0% because of HW +- * limitation for level 0. So limiting minimum brightness level +- * to 1. +- */ + if (bd->props.brightness < 1) + brightness = 0x101; + +-- +2.17.1 + |