All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] reset: Fix the behavior of optional reset
@ 2021-05-07 11:02 Kishon Vijay Abraham I
  2021-05-07 11:02 ` [PATCH 1/2] reset: Do not return NULL on error for devm_reset_control_get_optional() Kishon Vijay Abraham I
  2021-05-07 11:02 ` [PATCH 2/2] reset: Let reset API's handle gracefully if reset_ctl is -ENODATA Kishon Vijay Abraham I
  0 siblings, 2 replies; 14+ messages in thread
From: Kishon Vijay Abraham I @ 2021-05-07 11:02 UTC (permalink / raw)
  To: u-boot

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(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-06-19 17:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07 11:02 [PATCH 0/2] reset: Fix the behavior of optional reset Kishon Vijay Abraham I
2021-05-07 11:02 ` [PATCH 1/2] reset: Do not return NULL on error for devm_reset_control_get_optional() Kishon Vijay Abraham I
2021-05-07 16:34   ` Simon Glass
2021-05-11  6:26     ` Kishon Vijay Abraham I
2021-05-11 16:39       ` Simon Glass
2021-05-13  6:15         ` Kishon Vijay Abraham I
2021-05-13 23:56           ` Simon Glass
2021-05-14  5:18             ` Kishon Vijay Abraham I
2021-06-08 10:40               ` Pratyush Yadav
2021-06-19 17:32                 ` Simon Glass
2021-05-07 11:02 ` [PATCH 2/2] reset: Let reset API's handle gracefully if reset_ctl is -ENODATA Kishon Vijay Abraham I
2021-05-07 16:34   ` Simon Glass
2021-05-13  6:30     ` Kishon Vijay Abraham I
2021-05-13 17:00       ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.