Running a new test should reset the sandbox state to avoid tests
interferring with each other. Move the existing state-reset code into a
function so it can be used from tests.

Also update the code to reset the SPI devices and adjust the test code to
call it.

Signed-off-by: Simon Glass <s...@chromium.org>
---

Changes in v3:
- Clear the watchdog state also

Changes in v2: None

 arch/sandbox/cpu/state.c         | 15 +++++++++++----
 arch/sandbox/include/asm/state.h |  7 +++++++
 test/dm/test-main.c              |  1 +
 3 files changed, 19 insertions(+), 4 deletions(-)

Applied to u-boot-dm
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to