On Fri, Mar 27, 2020 at 11:37:07AM +0100, Linus Walleij wrote: > On Thu, Mar 19, 2020 at 1:27 PM Thierry Reding wrote: > > > From: Thierry Reding > > > > Wake gpiochip_generic_request() call into the pinctrl helpers only if a > > GPIO controller had any pin-ranges assigned to it. This allows a driver > > to unconditionally use this helper if it supports multiple devices of > > which only a subset have pin-ranges assigned to them. > > > > Signed-off-by: Thierry Reding > > Patch applied. > > We have some drivers like this: > drivers/gpio/gpio-pl061.c: > > if (of_property_read_bool(dev->of_node, "gpio-ranges")) { > pl061->gc.request = gpiochip_generic_request; > pl061->gc.free = gpiochip_generic_free; > } > > Should we just make a patch assigning these callbacks > unconditionally as a follow-up? Yeah, that's a good idea. I'll look into it. Thierry