On Fri, Jul 21, 2017 at 7:26 PM, Jonathan Bennett <jbennett@xxxxxxxxxxxxxx> wrote: > So to use GPIO pins through the chardev interface, one has to hold on to the file > descriptor to keep the pins from reverting to their initial state. Is this a bug, or > intended behavior? I do not remember putting any code in that would explicitly return the GPIO line to the inital state. That said it makes some weird sense as people might be probing around with the tools and then it would be good behaviour to leave things in the room like they were arranged when you entered, don't you think? I'd like to hear Bartosz take on this though, he is more versed with userspace GPIO than me these days, and talk directly to users of this feature. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html