From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kishon Vijay Abraham I Date: Fri, 7 May 2021 16:32:00 +0530 Subject: [PATCH 0/2] reset: Fix the behavior of optional reset Message-ID: <20210507110202.13697-1-kishon@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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