aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorYao Zi <[email protected]>2025-06-05 12:34:46 +0000
committerHuacai Chen <[email protected]>2025-06-06 10:51:16 +0000
commit1205088fd0393bd9eae96b62bf1e4b9eb1b73edf (patch)
treeeaf9f181c5d391b192f1309c5e8a38baa26d43dc /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentLoongArch: dts: Add PWM support to Loongson-2K2000 (diff)
downloadkernel-1205088fd0393bd9eae96b62bf1e4b9eb1b73edf.tar.gz
kernel-1205088fd0393bd9eae96b62bf1e4b9eb1b73edf.zip
platform/loongarch: laptop: Get brightness setting from EC on probe
Previously during driver probe, 1 is unconditionally taken as current brightness value and set to props.brightness, which will be considered as the brightness before suspend and restored to EC on resume. Since a brightness value of 1 almost never matches EC's state on coldboot (my laptop's EC defaults to 80), this causes surprising changes of screen brightness on the first time of resume after coldboot. Let's get brightness from EC and take it as the current brightness on probe of the laptop driver to avoid the surprising behavior. Tested on TongFang L860-T2 Loongson-3A5000 laptop. Cc: [email protected] Fixes: 6246ed09111f ("LoongArch: Add ACPI-based generic laptop driver") Signed-off-by: Yao Zi <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions