linux/include/linux/pinctrl
Frank Li 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
..
consumer.h pinctrl: introduce pinctrl_gpio_get_config() 2026-03-24 13:50:30 +01:00
devinfo.h driver core: make pinctrl_bind_pins() private 2026-01-19 00:34:44 +01:00
machine.h pinctrl: core: add devm_pinctrl_register_mappings() 2025-05-21 10:09:47 +02:00
pinconf-generic.h pinctrl: pinconf-generic: Add properties 'input-threshold-voltage-microvolt' 2026-03-23 09:59:34 +01:00
pinconf.h pinctrl: Convert unsigned to unsigned int 2023-12-04 15:32:42 +01:00
pinctrl-state.h pinctrl: add include guard to pinctrl-state.h 2019-06-09 16:53:22 +02:00
pinctrl.h pinctrl: core: Remove unused devm_pinctrl_unregister() 2026-02-03 01:18:18 +01:00
pinmux.h pinctrl: add optional .release_mux() callback 2026-05-05 14:48:12 +02:00