
This series is a result of discussion in [1]
This series does not return NULL for optional resets so that the client driver knows whether it had obtained a reset or not.
If it returns -ENODATA, that would mean reset controller is not obtained. However the reset API's wil not abort or throw error and handle gracefully if it's passed -ENODATA.
[1] -> https://patchwork.ozlabs.org/project/uboot/patch/20210504104155.19222-4-kish...
Kishon Vijay Abraham I (2): reset: Do not return NULL on error for devm_reset_control_get_optional() reset: Let reset API's handle gracefully if reset_ctl is -ENODATA
drivers/reset/reset-uclass.c | 51 ++++++++++++++++++------------ drivers/reset/sandbox-reset-test.c | 2 +- 2 files changed, 32 insertions(+), 21 deletions(-)