Re: [PATCH] gpio-poweroff: Use gpiod_set_value_cansleep

2018-04-25 Thread Sebastian Reichel
Hi Mike, On Tue, Apr 24, 2018 at 01:10:30PM +0200, Mike Looijmans wrote: > The power-off call is done in a context that must be able to sleep, so > use gpiod_set_value_cansleep instead of the atomic gpiod_set_value call. > > This fixes a kernel warning at shutdown when the gpio is controlled >

Re: [PATCH] gpio-poweroff: Use gpiod_set_value_cansleep

2018-04-25 Thread Sebastian Reichel
Hi Mike, On Tue, Apr 24, 2018 at 01:10:30PM +0200, Mike Looijmans wrote: > The power-off call is done in a context that must be able to sleep, so > use gpiod_set_value_cansleep instead of the atomic gpiod_set_value call. > > This fixes a kernel warning at shutdown when the gpio is controlled >

[PATCH] gpio-poweroff: Use gpiod_set_value_cansleep

2018-04-24 Thread Mike Looijmans
The power-off call is done in a context that must be able to sleep, so use gpiod_set_value_cansleep instead of the atomic gpiod_set_value call. This fixes a kernel warning at shutdown when the gpio is controlled through an IO expander for example. Signed-off-by: Mike Looijmans

[PATCH] gpio-poweroff: Use gpiod_set_value_cansleep

2018-04-24 Thread Mike Looijmans
The power-off call is done in a context that must be able to sleep, so use gpiod_set_value_cansleep instead of the atomic gpiod_set_value call. This fixes a kernel warning at shutdown when the gpio is controlled through an IO expander for example. Signed-off-by: Mike Looijmans ---