[PATCH 0/2] reset: Fix the behavior of optional reset

Kishon Vijay Abraham I kishon at ti.com
Fri May 7 13:02:00 CEST 2021

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-kishon@ti.com/

Kishon Vijay Abraham I (2):
  reset: Do not return NULL on error for
  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(-)


More information about the U-Boot mailing list