mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 00/15] MTU3 counter fixes and improvements
@ 2026-10-04 17:47 Cosmin Tanislav
  2026-10-04 17:47 ` [PATCH v2 01/15] counter: rz-mtu3-cnt: put runtime PM on initialization error path Cosmin Tanislav
                   ` (15 more replies)
  0 siblings, 16 replies; 19+ messages in thread
From: Cosmin Tanislav @ 2026-10-04 17:47 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.

Patch 3 relies on the following series to enable runtime PM on the
parent device so that the PM domain handles it automatically.

https://lore.kernel.org/lkml/20261004174024.502949-1-cosmin-gabriel.tanislav.xa@renesas.com

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 (15):
  counter: rz-mtu3-cnt: put runtime PM on initialization error path
  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 | 458 +++++++++++-----------------------
 1 file changed, 149 insertions(+), 309 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-10-08  2:03 UTC | newest]

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

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®