From patchwork Fri Jun 12 12:08:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pratyush Yadav X-Patchwork-Id: 242169 List-Id: U-Boot discussion From: p.yadav at ti.com (Pratyush Yadav) Date: Fri, 12 Jun 2020 17:38:01 +0530 Subject: [PATCH v2 0/2] reset: Add a managed API Message-ID: <20200612120803.20657-1-p.yadav@ti.com> Hi, This is the 4th of a few series that are re-rolls of Jean-Jacques' earlier efforts. The goal is to facilitate porting drivers from the Linux kernel. This particular series is about reset controllers. It adds a managed API, close to that of Linux. The main difference is that bulk and reset_ctl are handled with different functions. Changes in v2: - Fix test build failing because of missing function prototypes and includes. - Drop NULL checks from the reset core. For now let drivers handle them. We can always add the checks back if we think they are a better idea. - Rebase on latest master. Jean-Jacques Hiblot (2): drivers: reset: Add a managed API to get reset controllers from the DT test: reset: Add tests for the managed API arch/sandbox/include/asm/reset.h | 3 + drivers/reset/reset-uclass.c | 118 ++++++++++++++++++++++++- drivers/reset/sandbox-reset-test.c | 51 +++++++++-- drivers/reset/sandbox-reset.c | 19 ++++ include/reset.h | 135 ++++++++++++++++++++++++++++- test/dm/reset.c | 60 +++++++++++++ 6 files changed, 375 insertions(+), 11 deletions(-) --- 2.27.0