[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250531113851.21426-1-ziyao@disroot.org>
Date: Sat, 31 May 2025 11:38:49 +0000
From: Yao Zi <ziyao@...root.org>
To: Huacai Chen <chenhuacai@...nel.org>,
Jianmin Lv <lvjianmin@...ngson.cn>,
WANG Xuerui <kernel@...0n.name>
Cc: linux-kernel@...r.kernel.org,
loongarch@...ts.linux.dev,
Mingcong Bai <jeffbai@...c.io>,
Kexy Biscuit <kexybiscuit@...c.io>,
Yao Zi <ziyao@...root.org>
Subject: [PATCH 0/2] Backlight control improvements for loongson_laptop
I've observed strange screen brightness changes on TongFang L860-T2
3A5000 laptop after resumption. It's found that a brightness value that
doesn't match the hardware state before suspension is "restored" for the
EC, causing the strange behavior.
This series fixes the behavior by obtaining EC's brightness setting
instead of using a constant as current brightness on probe.
While digging through the code, I've found some unused,
power-control-related functions in the driver. They're cleaned up and
used to support power control of backlight in the second patch as well.
Yao Zi (2):
platform/loongarch: laptop: Get brightness setting from EC on probe
platform/loongarch: laptop: Support backlight power control
drivers/platform/loongarch/loongson-laptop.c | 55 +++++++-------------
1 file changed, 20 insertions(+), 35 deletions(-)
--
2.49.0
Powered by blists - more mailing lists