Re: [PATCH v5 1/3] gpiolib: Add init_valid_mask exported function

2018-10-10 Thread Linus Walleij
On Fri, Oct 5, 2018 at 8:53 AM Ricardo Ribalda Delgado wrote: > Add a function that allows initializing the valid_mask from > gpiochip_add_data. > > This prevents race conditions during gpiochip initialization. > > If the function is not exported, then the old behaviour is respected, > this is, s

[PATCH v5 1/3] gpiolib: Add init_valid_mask exported function

2018-10-04 Thread Ricardo Ribalda Delgado
Add a function that allows initializing the valid_mask from gpiochip_add_data. This prevents race conditions during gpiochip initialization. If the function is not exported, then the old behaviour is respected, this is, set all gpios as valid. Signed-off-by: Ricardo Ribalda Delgado --- drivers