Skip to content

Conversation

@jwnrt
Copy link
Contributor

@jwnrt jwnrt commented Oct 19, 2025

This CLI flag is unused and we want to set a reset delay for whole platforms at a time (specifically for QEMU which requires a longer delay).

This PR:

  1. Splits reset_target into reset (which uses the configuration file) and reset_with_delay which accepts an ad hoc delay.
  2. Switches all tests to use the new functions.

The default is still 100ms so behaviour should be unchanged.

Backport of #28509

jwnrt added 4 commits October 19, 2025 14:38
The RX clearing mechanism is implemented (in a slightly different
improved way) in `target_reset` so it's okay to defer that to
`reset_target(true)`.

Signed-off-by: James Wainwright <[email protected]>
(cherry picked from commit 839803e)
This allows us to have one function using a default configured reset and
another one that allows specifying the reset.

Signed-off-by: James Wainwright <[email protected]>
(cherry picked from commit 4fcf745)
Signed-off-by: James Wainwright <[email protected]>
(cherry picked from commit f8ba7c7)
Reset delays are now configured once in configuration files and cannot
be changed per-test on the command line.

This commit switches all uses of the `reset_target` function to use
either `reset` or `reset_with_delay` where appropriate. All delays
should be exactly the same after this commit.

Signed-off-by: James Wainwright <[email protected]>
(cherry picked from commit 472c31f)
@jwnrt jwnrt marked this pull request as ready for review October 19, 2025 16:03
@jwnrt jwnrt requested a review from a team as a code owner October 19, 2025 16:03
@jwnrt jwnrt requested review from timothytrippel and removed request for a team October 19, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant