Re: [PATCH v2] gpiolib: Preserve desc->flags when setting state

2019-07-05 Thread Linus Walleij
Hi Chris, thanks for your patch! On Thu, Jul 4, 2019 at 6:21 AM Chris Packham wrote: > desc->flags may already have values set by of_gpiochip_add() so make > sure that this isn't undone when setting the initial direction. > > Fixes: 3edfb7bd76bd1cba ("gpiolib: Show correct direction from the be

[PATCH v2] gpiolib: Preserve desc->flags when setting state

2019-07-03 Thread Chris Packham
desc->flags may already have values set by of_gpiochip_add() so make sure that this isn't undone when setting the initial direction. Fixes: 3edfb7bd76bd1cba ("gpiolib: Show correct direction from the beginning") Signed-off-by: Chris Packham --- Notes: Changes in v2: - add braces to avoid