
25 May
2017
25 May
'17
2:06 a.m.
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 sjg@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