[PATCH 00/15] MTU3 counter fixes and improvements

From: Cosmin Tanislav

Date: Mon Sep 14 2026 - 16:38:48 EST


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/20260914201456.2018403-1-cosmin-gabriel.tanislav.xa@xxxxxxxxxxx/

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 | 443 +++++++++++-----------------------
1 file changed, 139 insertions(+), 304 deletions(-)

--
2.55.0