Re: [PATCH v2 03/17] drivers: reset: Handle gracefully NULL pointers

2021-05-04 Thread Kishon Vijay Abraham I
Hi Simon, On 15/04/21 1:08 am, Simon Glass wrote: > Hi Kishon, > > On Mon, 5 Apr 2021 at 11:28, Kishon Vijay Abraham I wrote: >> >> From: Jean-Jacques Hiblot >> >> The reset framework provides devm_reset_control_get_optional() >> which can return NULL (not an error case). So all the other reset

Re: [PATCH v2 03/17] drivers: reset: Handle gracefully NULL pointers

2021-04-14 Thread Simon Glass
Hi Kishon, On Mon, 5 Apr 2021 at 11:28, Kishon Vijay Abraham I wrote: > > From: Jean-Jacques Hiblot > > The reset framework provides devm_reset_control_get_optional() > which can return NULL (not an error case). So all the other reset_ops > should handle NULL gracefully. Prepare the way for a ma

[PATCH v2 03/17] drivers: reset: Handle gracefully NULL pointers

2021-04-05 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot The reset framework provides devm_reset_control_get_optional() which can return NULL (not an error case). So all the other reset_ops should handle NULL gracefully. Prepare the way for a managed reset API by handling NULL pointers without crashing nor failing. Signed-off