mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Backlight control improvements for loongson_laptop
@ 2025-06-05  5:48 Yao Zi
  2025-06-05  5:48 ` [PATCH v2 1/2] platform/loongarch: laptop: Get brightness setting from EC on probe Yao Zi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yao Zi @ 2025-06-05  5:48 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.

Changed from v1:
- Reword commit message of PATCH 1
- PATCH 2
  - Always issue a power-on command on probe to ensure the backlight has
    been powered, matching our expectation
  - Cache backlight state in the driver to reduce interaction with EC
- Link to v1: https://lore.kernel.org/loongarch/20250531113851.21426-1-ziyao@disroot.org/

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 | 78 ++++++++++----------
 1 file changed, 39 insertions(+), 39 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-06-06 13:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-05  5:48 [PATCH v2 0/2] Backlight control improvements for loongson_laptop Yao Zi
2025-06-05  5:48 ` [PATCH v2 1/2] platform/loongarch: laptop: Get brightness setting from EC on probe Yao Zi
2025-06-05  5:48 ` [PATCH v2 2/2] platform/loongarch: laptop: Support backlight power control Yao Zi
2025-06-06 13:11 ` [PATCH v2 0/2] Backlight control improvements for loongson_laptop Huacai Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®