reset: Fix the behavior of optional reset
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | reset: Do not return NULL on error for devm_reset_control_get_optional()drivers/ drivers/ | +3 | 1 reply | |
| 1/2 | reset: Do not return NULL on error for devm_reset_control_get_optional() | +0 | 1 reply | |
| 1/2 | reset: Do not return NULL on error for devm_reset_control_get_optional() | +0 | 1 reply | |
| 1/2 | reset: Do not return NULL on error for devm_reset_control_get_optional() | +0 | 2 replies | |
| 2/2 | reset: Let reset API's handle gracefully if reset_ctl is -ENODATAdrivers/ | +29 | 1 reply | |
| 2/2 | reset: Let reset API's handle gracefully if reset_ctl is -ENODATA | +0 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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