Hi,
Then you might want to update your kernel - the kernel device driver was changed to support peristing [1]. I get this on my Pi4 running bookworm:
$ gpioset -t0 GPIO23=0 $ gpioinfo GPIO23 gpiochip0 23 "GPIO23" output $ gpioget -a GPIO23 "GPIO23"=inactive $ gpioinfo GPIO23 gpiochip0 23 "GPIO23" output $ gpioset -t0 GPIO23=1 $ gpioget -a GPIO23 "GPIO23"=active
in order to increase the confusion, i need to mention that this behavior only applies to the vendor kernel tree. The bcm2835 pinctrl driver in mainline kernel always falls back to GPIO input during the pin is freed since 2016.