]> git.ipfire.org Git - thirdparty/u-boot.git/commit
reset: Add reset_reset() and reset_reset_bulk() API
authorMichal Simek <michal.simek@amd.com>
Mon, 25 May 2026 11:45:42 +0000 (13:45 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 8 Jun 2026 08:50:06 +0000 (10:50 +0200)
commit19f7def2646f2ec2926e8a0fcff50d4b754eec92
tree4c2f6d7b1a04203930f44a71f3a5fdc2006f706d
parent4706bd020886bc8fd583efb91aa227ed99c95c45
reset: Add reset_reset() and reset_reset_bulk() API

Add reset_reset() and reset_reset_bulk() functions to the reset
controller API. These functions assert and then deassert reset signals
in a single call, providing a convenient way to pulse/toggle a reset
line.

This mimics the Linux kernel's reset_control_reset() and
reset_control_bulk_reset() APIs. The new functions are useful for
drivers that need to cycle a reset line during initialization or
error recovery but with also passing delay parameter.

If a driver implements the rst_reset op, it will be called directly
with the delay parameter. Otherwise, the reset core performs
reset_assert(), optional udelay(), and reset_deassert() as fallback.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/55ddd313c9e7b2d4dc79ab36bdd0040f871610f6.1779709539.git.michal.simek@amd.com
drivers/reset/reset-uclass.c
include/reset-uclass.h
include/reset.h