417afa7caa
I don't know why we gpio(4) didn't do that before, but it seems harmless. Add naive power handling: when a gpio(4) instance is resumed, write each pin's configuration flags and output state from the softc to the hardware using gpiobus_pin_ctl() and gpiobus_pin_write(). While suspended, fail every ioctl() except for GPIOINFO with EBUSY. |
||
---|---|---|
.. | ||
files.gpio | ||
gpio.c | ||
gpioow.c | ||
gpiovar.h |