On Tue, Aug 4, 2015 at 11:27 AM, Markus Pargmann <mpa@xxxxxxxxxxxxxx> wrote: > It can be useful to claim hogged gpios later, for example from > userspace. This allows to set defaults for GPIOs using the hogging > mechanism and override the setup later from userspace or a kernel driver. > > This patch adds a check for hogged gpios to allow requesting them. If > the gpio is not hogged but marked as requested, it still fails with > -EBUSY. > > Signed-off-by: Markus Pargmann <mpa@xxxxxxxxxxxxxx> To me it feels like a new DT property "gpio-inital-value" or so need to be defined in addition to the hogging bindings, and that one just sets the GPIO up without setting the FLAG_IS_HOGGED. The mechanism needs to be available to non-DT as well of course, but it could be a first usecase. So instead of: line_b { gpio-initval; gpios = <6 0>; output-low; }; Note: no line-name. And it shouldn't be allowed: we don't know who will use this in the end. 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