Files
linux-stable-mirror/include/linux
Frank LiandLinus Walleij 418a2bbdee pinctrl: add optional .release_mux() callback
Add an optional .release_mux() callback to struct pinmux_ops.

Some drivers acquire additional resources in .set_mux(), such as software
locks. These resources may need to be released when the mux function is no
longer active. Introducing a dedicated .release_mux() callback allows
drivers to clean up such resources.

The callback is optional and does not affect existing drivers.

Commit 2243a87d90 ("pinctrl: avoid duplicated calling
enable_pinmux_setting for a pin") removed the .disable() callback
to resolve two issues:

  1. desc->mux_usecount increasing monotonically
  2. Hardware glitches caused by repeated .disable()/.enable() calls

Adding .release_mux() does not reintroduce those problems. The callback is
intended only for releasing driver-side resources (e.g. locks) and must not
modify hardware registers.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
2026-05-05 14:48:12 +02:00
..
2026-04-07 08:22:24 -06:00
2026-04-16 07:03:40 -07:00
2026-04-07 17:38:07 +02:00
2026-04-05 13:53:28 -07:00
2026-04-06 11:39:54 +02:00
2026-04-05 13:53:10 -07:00
2026-04-20 11:35:17 -07:00
2026-04-13 08:39:51 -07:00
2026-04-06 09:06:39 +02:00