mbox series

[v3,0/2] reset: Add a managed API

Message ID 20200909100704.27691-1-p.yadav@ti.com
Headers show
Series reset: Add a managed API | expand

Message

Pratyush Yadav Sept. 9, 2020, 10:07 a.m. UTC
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 v3:
- Rebase on latest master and fix merge conflicts.
- Other changes in individual patches.

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.28.0

Comments

Pratyush Yadav Sept. 9, 2020, 10:10 a.m. UTC | #1
On 09/09/20 03:37PM, Pratyush Yadav wrote:
> 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.

Forgot to mention: Travis CI run can be found at 
https://travis-ci.org/github/prati0100/uboot/builds/725197237