On Mon, Apr 22, 2024 at 6:49 PM Gilles BULOZ <gilles.buloz@xxxxxxxxxxx> wrote: > > On Mon, Apr 22, 2024 at 3:55 PM Bartosz Golaszewski wrote : > > > > This behavior is driver-specific. Meaning: you're in-kernel GPIO > > driver may actually retain the state. > > > > Which method should the driver implement to restore the state on GPIO when the > last process referencing the character device exits ? > The free callback in struct gpio_chip. Bart