linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Backlight control improvements for loongson_laptop
@ 2025-05-31 11:38 Yao Zi
  2025-05-31 11:38 ` [PATCH 1/2] platform/loongarch: laptop: Get brightness setting from EC on probe Yao Zi
  2025-05-31 11:38 ` [PATCH 2/2] platform/loongarch: laptop: Support backlight power control Yao Zi
  0 siblings, 2 replies; 12+ messages in thread
From: Yao Zi @ 2025-05-31 11:38 UTC (permalink / raw)
  To: Huacai Chen, Jianmin Lv, WANG Xuerui
  Cc: linux-kernel, loongarch, Mingcong Bai, Kexy Biscuit, Yao Zi

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-06-04 14:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-31 11:38 [PATCH 0/2] Backlight control improvements for loongson_laptop Yao Zi
2025-05-31 11:38 ` [PATCH 1/2] platform/loongarch: laptop: Get brightness setting from EC on probe Yao Zi
2025-06-03  4:11   ` Huacai Chen
2025-06-03  6:44     ` Yao Zi
2025-06-04 13:56       ` Huacai Chen
2025-06-04 14:47         ` Yao Zi
2025-05-31 11:38 ` [PATCH 2/2] platform/loongarch: laptop: Support backlight power control Yao Zi
2025-06-03  4:16   ` Huacai Chen
2025-06-03  5:44     ` WANG Xuerui
2025-06-03  5:52       ` Xi Ruoyao
2025-06-03  7:05     ` Yao Zi
2025-06-04 13:57       ` Huacai Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).