Re: [PATCH v6 0/4] pps-gpio: restore pin mux on unbind and shutdown

From: Bartosz Golaszewski

Date: Mon Nov 02 2026 - 09:55:20 EST


On Wed, Sep 23, 2026 at 06:22:39PM +0000, Eliav Farber wrote:
> Some boards route the PPS input GPIO through a pin controller and mux the
> pins to a different function when the pps-gpio driver is not active.
>
> The driver core already selects the "default" pinctrl state before probe,
> so the pins can be muxed for GPIO/PPS use while the driver is bound without
> any driver change. Nothing, however, hands the pins back when the driver
> is unbound or the system is shut down (for example before kexec), leaving
> them stuck in the GPIO mux for the next kernel.
>
> This series lets pps-gpio select an optional "inactive" pinctrl state in
> remove() and shutdown(), so a board can describe the alternate mux there
> and have it restored. The state is looked up and selected by the driver
> itself (devm_pinctrl_get() + pinctrl_lookup_state() + pinctrl_select_
> state()), so its meaning is unambiguous and it does not depend on
> CONFIG_PM. It is a no-op for boards that do not describe an "inactive"
> state.
>

Please stop posting new iterations in reply to previous ones. Preferably
use b4 for managing patch series. Each new iteration should be its own
thread.

Thanks,
Bartosz