[PATCH v2 0/2] reset: Add a managed API
Pratyush Yadav
p.yadav at ti.com
Fri Jun 12 14:08:01 CEST 2020
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
More information about the U-Boot
mailing list