Re: [PATCH v3] reset: Add KUnit test cases

From: Philipp Zabel

Date: Thu Nov 05 2026 - 06:13:51 EST


On Do, 2026-11-05 at 00:01 +0800, Tzung-Bi Shih wrote:
> Since commit 9035073d0ef1 ("reset: convert reset core to using firmware
> nodes"), reset suppliers and consumers can be wired up using software
> nodes without requiring Device Tree or hardware devices. Leverage this
> to add KUnit test cases for the reset controller framework.
>
> The test cases cover the following scenarios:
>
> - Basic: Verifies that a consumer can acquire a reset control via
> fwnode and perform reset, assert, deassert, status, release, and
> acquire operations.
> - Use After Unregister: Verifies that after the supplier unregisters
> the reset_controller_dev while a consumer still holds a reset_control
> handle, subsequent consumer operations fail safely with -ENODEV.
> - Concurrent Unregister: Verifies that unregistering the
> reset_controller_dev concurrently with an in-flight reset operation
> waits for the active operation to complete before returning.
>
> Signed-off-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>

Applied to reset/next, thanks!

[1/1] reset: Add KUnit test cases
https://git.kernel.org/pub/scm/linux/kernel/git/pza/linux.git/commit/?id=db2f5f4ccc3df

regards
Philipp