Skip to content

reset: Introduce reset_reset.*() API

Michal Simek u-boot 4 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 1 replyApplied
  2. v35 patches 9 repliesSuperseded
  3. v24 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches8 repliesSuperseded

Changes in v4 from the cover letter

- change reset test logic

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/5reset: Add reset_reset() and reset_reset_bulk() APIdrivers/reset/reset-uclass.c include/reset-uclass.h include/reset.h+102 -00 replies
2/5reset: Add sandbox tests for reset_reset() and reset_reset_bulk()arch/sandbox/include/asm/reset.h drivers/reset/sandbox-reset-test.c drivers/reset/sandbox-reset.c +1 more+115 -00 replies
3/5reset: sandbox: Cover reset_reset() fallback with second sandbox providerarch/sandbox/dts/test.dts drivers/reset/sandbox-reset.c test/dm/reset.c+75 -20 replies
4/5spi: cadence: Use reset_reset_bulk() for proper reset cyclingdrivers/spi/cadence_qspi.c+4 -120 replies
5/5reset: zynqmp: Implement rst_reset using PM_RESET_ACTION_PULSEdrivers/reset/reset-zynqmp.c+11 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] reset: Introduce reset_reset.*() API

Hi,

the patchset is adding reset_reset.*() interface which is common in Linux. And implement it for ZynqMP.

Thanks,
Michal

Changes in v4:
- change reset test logic

Changes in v3:
- extend function documentation
- align commit message with implementation
- new patch in series

Changes in v2:
- Add delay_us parameter to specify delay between assert and deassert
- Pass delay_us to rst_reset op so drivers can use it if needed
- Return -ENOSYS in stubs when !CONFIG_DM_RESET (like clk.h)
- Fix line length to stay within 80 characters
- Add reset_count field to track reset pulse operations
- Implement sandbox_reset_reset() for rst_reset op
- Add sandbox_reset_get_count() to query reset pulse count
- Clear reset_count when reset is requested
- Update tests to verify reset pulse actually happened
- Pass 10us via parameter

Michal Simek (5):
reset: Add reset_reset() and reset_reset_bulk() API
reset: Add sandbox tests for reset_reset() and reset_reset_bulk()
reset: sandbox: Cover reset_reset() fallback with second sandbox
provider
spi: cadence: Use reset_reset_bulk() for proper reset cycling
reset: zynqmp: Implement rst_reset using PM_RESET_ACTION_PULSE

 arch/sandbox/dts/test.dts          |  10 ++-
 arch/sandbox/include/asm/reset.h   |   3 +
 drivers/reset/reset-uclass.c       |  34 +++++++++
 drivers/reset/reset-zynqmp.c       |  11 +++
 drivers/reset/sandbox-reset-test.c |  14 ++++
 drivers/reset/sandbox-reset.c      |  58 ++++++++++++++++
 drivers/spi/cadence_qspi.c         |  16 ++---
 include/reset-uclass.h             |  19 +++++
 include/reset.h                    |  49 +++++++++++++
 test/dm/reset.c                    | 107 +++++++++++++++++++++++++++++
 10 files changed, 307 insertions(+), 14 deletions(-)
Signature · 4 lines
2.43.0

base-commit: 987c93fc68a641cc735c9828872511a947e54191
branch: xnext/reset