mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 00/14] MTU3 counter fixes and improvements
@ 2026-11-17 10:25 Cosmin Tanislav
  2026-11-17 10:25 ` [PATCH v3 01/14] counter: rz-mtu3-cnt: do not assign struct rz_mtu3_channel::dev Cosmin Tanislav
                   ` (13 more replies)
  0 siblings, 14 replies; 26+ messages in thread
From: Cosmin Tanislav @ 2026-11-17 10:25 UTC (permalink / raw)
  To: Biju Das, William Breathitt Gray
  Cc: linux-iio, linux-renesas-soc, linux-kernel, Cosmin Tanislav

This series does some code quality improvements to the MTU3 counter
subdriver, while also fixing bugs and adding caching support so that
registers are not touched when the counter is disabled, as there is no
request API.

V3:
 * drop superseded "put runtime PM on initialization error path" patch
 * adapt "drop conditional locks" patch to the contents of the accepted
   "put runtime PM ref if counter init fails" patch

V2:
 * remove clk.h include
 * remove struct rz_mtu3_cnt::clk documentation
 * fix struct rz_mtu3_cnt::ceiling documentation
 * add struct rz_mtu3_cnt::count documentation
 * add struct rz_mtu3_cnt::timer_mode documentation
 * add struct rz_mtu3_cnt::mtclkc_mtclkd documentation
 * add struct rz_mtu3_cnt::direction documentation
 * add struct rz_mtu3_cnt::cascade_counts_enable documentation
 * remove now-unused RZ_MTU3_MAX_HW_CNTR_CHANNELS macro
 * move rz_mtu3_set_lwa() call after rz_mtu3_disable()
 * mention the removed busy check
 * mask 16-bit counter value to preserve behavior

Cosmin Tanislav (14):
  counter: rz-mtu3-cnt: do not assign struct rz_mtu3_channel::dev
  counter: rz-mtu3-cnt: remove manual runtime PM handling
  counter: rz-mtu3-cnt: use device-managed pm_runtime_enable()
  counter: rz-mtu3-cnt: read enable value from cache
  counter: rz-mtu3-cnt: disable channel before releasing
  counter: rz-mtu3-cnt: unify ceiling values
  counter: rz-mtu3-cnt: cache ceiling values
  counter: rz-mtu3-cnt: cache count values
  counter: rz-mtu3-cnt: cache function values
  counter: rz-mtu3-cnt: cache external input phase clock value
  counter: rz-mtu3-cnt: cache direction values
  counter: rz-mtu3-cnt: keep cascade_counts_enable in sync with usage
  counter: rz-mtu3-cnt: drop conditional locks
  counter: rz-mtu3-cnt: use pm_runtime_resume_and_get()

 drivers/counter/rz-mtu3-cnt.c | 452 +++++++++++-----------------------
 1 file changed, 144 insertions(+), 308 deletions(-)

-- 
2.56.0


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

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

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 10:25 [PATCH v3 00/14] MTU3 counter fixes and improvements Cosmin Tanislav
2026-11-17 10:25 ` [PATCH v3 01/14] counter: rz-mtu3-cnt: do not assign struct rz_mtu3_channel::dev Cosmin Tanislav
2026-11-17 14:04   ` Biju Das
2026-11-17 10:25 ` [PATCH v3 02/14] counter: rz-mtu3-cnt: remove manual runtime PM handling Cosmin Tanislav
2026-11-17 14:04   ` Biju Das
2026-11-17 10:25 ` [PATCH v3 03/14] counter: rz-mtu3-cnt: use device-managed pm_runtime_enable() Cosmin Tanislav
2026-11-17 10:25 ` [PATCH v3 04/14] counter: rz-mtu3-cnt: read enable value from cache Cosmin Tanislav
2026-11-17 14:05   ` Biju Das
2026-11-17 10:25 ` [PATCH v3 05/14] counter: rz-mtu3-cnt: disable channel before releasing Cosmin Tanislav
2026-11-17 14:05   ` Biju Das
2026-11-17 10:25 ` [PATCH v3 06/14] counter: rz-mtu3-cnt: unify ceiling values Cosmin Tanislav
2026-11-17 10:26 ` [PATCH v3 07/14] counter: rz-mtu3-cnt: cache " Cosmin Tanislav
2026-11-17 10:26 ` [PATCH v3 08/14] counter: rz-mtu3-cnt: cache count values Cosmin Tanislav
2026-11-17 10:26 ` [PATCH v3 09/14] counter: rz-mtu3-cnt: cache function values Cosmin Tanislav
2026-11-17 10:26 ` [PATCH v3 10/14] counter: rz-mtu3-cnt: cache external input phase clock value Cosmin Tanislav
2026-11-17 10:26 ` [PATCH v3 11/14] counter: rz-mtu3-cnt: cache direction values Cosmin Tanislav
2026-11-17 13:49   ` Biju Das
2026-11-17 10:26 ` [PATCH v3 12/14] counter: rz-mtu3-cnt: keep cascade_counts_enable in sync with usage Cosmin Tanislav
2026-11-17 14:28   ` Biju Das
2026-11-17 14:42     ` Cosmin-Gabriel Tanislav
2026-11-17 14:57       ` Biju Das
2026-11-17 15:01         ` Biju Das
2026-11-17 10:26 ` [PATCH v3 13/14] counter: rz-mtu3-cnt: drop conditional locks Cosmin Tanislav
2026-11-17 17:10   ` Biju Das
2026-11-17 10:26 ` [PATCH v3 14/14] counter: rz-mtu3-cnt: use pm_runtime_resume_and_get() Cosmin Tanislav
2026-11-17 17:04   ` Biju Das

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®