Linux LED subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] leds: tps6131x: Fix torch-to-flash transitions
@ 2026-11-17  6:43 jiegu
  2026-11-17  6:43 ` [PATCH 1/2] leds: tps6131x: cancel torch refresh on flash mode switch jiegu
  2026-11-17  6:43 ` [PATCH 2/2] leds: tps6131x: clear torch brightness cache on flash takeover jiegu
  0 siblings, 2 replies; 5+ messages in thread
From: jiegu @ 2026-11-17  6:43 UTC (permalink / raw)
  To: Matthias Fend, Lee Jones, Pavel Machek; +Cc: linux-leds, linux-kernel, jiegu

Our product uses the TI TPS61311 white flash LED controller.
The flashlight can be controlled in two modes: flash and torch.
Currently, there is a conflict when the torch is enabled and the
camera is opened. The torch is turned off while the camera is
active, but it is automatically re-enabled after the watchdog
timeout expires.
Also, When the device switches from torch mode to flash or
external strobe mode, the hardware torch output is disabled,
but the LED class brightness cache may still keep the previous
non-zero torch value.

This series fixes both issues by cancelling the pending torch refresh
work before switching modes and clearing the cached torch brightness
after a successful mode change.

Tested on a custom product board using the TI TPS61311.

gujie (2):
  leds: tps6131x: cancel torch refresh on flash mode switch
  leds: tps6131x: clear torch brightness cache on flash takeover

 drivers/leds/flash/leds-tps6131x.c | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-11-17  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17  6:43 [PATCH 0/2] leds: tps6131x: Fix torch-to-flash transitions jiegu
2026-11-17  6:43 ` [PATCH 1/2] leds: tps6131x: cancel torch refresh on flash mode switch jiegu
2026-11-17  7:04   ` sashiko-bot
2026-11-17  6:43 ` [PATCH 2/2] leds: tps6131x: clear torch brightness cache on flash takeover jiegu
2026-11-17  7:03   ` sashiko-bot

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