Re: [U-Boot] [PATCH v1 1/3] drivers: gpio: Handle gracefully NULL pointers

2019-10-22 Thread Jean-Jacques Hiblot
On 22/10/2019 00:53, Simon Glass wrote: Hi Jean-Jacques, On Mon, 21 Oct 2019 at 01:45, Jean-Jacques Hiblot wrote: On 18/10/2019 22:38, Simon Glass wrote: Hi Jean-Jacques, On Tue, 1 Oct 2019 at 05:51, Jean-Jacques Hiblot wrote: Prepare the way for a managed GPIO API by handling NULL point

Re: [U-Boot] [PATCH v1 1/3] drivers: gpio: Handle gracefully NULL pointers

2019-10-21 Thread Simon Glass
Hi Jean-Jacques, On Mon, 21 Oct 2019 at 01:45, Jean-Jacques Hiblot wrote: > > > On 18/10/2019 22:38, Simon Glass wrote: > > Hi Jean-Jacques, > > > > On Tue, 1 Oct 2019 at 05:51, Jean-Jacques Hiblot wrote: > >> Prepare the way for a managed GPIO API by handling NULL pointers without > >> crashing

Re: [U-Boot] [PATCH v1 1/3] drivers: gpio: Handle gracefully NULL pointers

2019-10-21 Thread Jean-Jacques Hiblot
On 18/10/2019 22:38, Simon Glass wrote: Hi Jean-Jacques, On Tue, 1 Oct 2019 at 05:51, Jean-Jacques Hiblot wrote: Prepare the way for a managed GPIO API by handling NULL pointers without crashing nor failing. VALIDATE_DESC() and validate_desc() come straight from Linux. Signed-off-by: Jean-Ja

Re: [U-Boot] [PATCH v1 1/3] drivers: gpio: Handle gracefully NULL pointers

2019-10-18 Thread Simon Glass
Hi Jean-Jacques, On Tue, 1 Oct 2019 at 05:51, Jean-Jacques Hiblot wrote: > > Prepare the way for a managed GPIO API by handling NULL pointers without > crashing nor failing. > VALIDATE_DESC() and validate_desc() come straight from Linux. > > Signed-off-by: Jean-Jacques Hiblot > --- > > drivers/

[U-Boot] [PATCH v1 1/3] drivers: gpio: Handle gracefully NULL pointers

2019-10-01 Thread Jean-Jacques Hiblot
Prepare the way for a managed GPIO API by handling NULL pointers without crashing nor failing. VALIDATE_DESC() and validate_desc() come straight from Linux. Signed-off-by: Jean-Jacques Hiblot --- drivers/gpio/gpio-uclass.c | 66 -- include/asm-generic/gpio.h