public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] iio: light: tcs3472: implementing wait time TODO
@ 2026-04-25 16:28 Aldo Conte
  2026-04-25 16:49 ` David Lechner
  0 siblings, 1 reply; 7+ messages in thread
From: Aldo Conte @ 2026-04-25 16:28 UTC (permalink / raw)
  To: linux-iio
  Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
	linux-kernel

Hi all,

I'd like to resolve the wait time TODO in tcs3472.c.

The TCS3472 has a WTIME register and WEN bit that insert a low-power
wait state between RGBC cycles. The register is already defined in the 
driver but never used.
I noticed that tsl2772.c enables wait with a fixed default and no
userspace control. However, I think exposing the wait time to
userspace would be more useful to tune the power/responsiveness tradeoff.

My plan would be to expose it via an ext_info attribute in
microseconds, following the same convention as integration_time.
Does that sound acceptable, or would you prefer a simpler approach
with just a fixed default like tsl2772?

I also plan a following patch converting the driver to devm.

Thanks,
Aldo


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

end of thread, other threads:[~2026-04-26 15:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-25 16:28 [RFC] iio: light: tcs3472: implementing wait time TODO Aldo Conte
2026-04-25 16:49 ` David Lechner
2026-04-25 19:00   ` Aldo Conte
2026-04-25 23:11     ` David Lechner
2026-04-26 10:48       ` Jonathan Cameron
2026-04-26 14:37         ` Aldo Conte
2026-04-26 15:51           ` David Lechner

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