Skip to content

reset: Fix the behavior of optional reset

Kishon Vijay Abraham I u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2reset: Do not return NULL on error for devm_reset_control_get_optional()drivers/reset/reset-uclass.c drivers/reset/sandbox-reset-test.c+3 -151 reply
1/2reset: Do not return NULL on error for devm_reset_control_get_optional()+0 -01 reply
1/2reset: Do not return NULL on error for devm_reset_control_get_optional()+0 -01 reply
1/2reset: Do not return NULL on error for devm_reset_control_get_optional()+0 -02 replies
2/2reset: Let reset API's handle gracefully if reset_ctl is -ENODATAdrivers/reset/reset-uclass.c+29 -61 reply
2/2reset: Let reset API's handle gracefully if reset_ctl is -ENODATA+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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

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(-)
Signature · 1 line
2.17.1