summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2023-08-23 02:18:20 +0200
committerTom Rini <[email protected]>2023-08-30 17:56:21 -0400
commit8a4289ad727a1a6b47b5690e7b3c0fde64f3aebf (patch)
tree5bf209e17e8b2e26df4121c9dbaebdeffb40e9b7 /test
parent6539f71d1d85895afd60c68d039342447713ee50 (diff)
drivers/mtd/nvmxip: Move sandbox_set_enable_memio() to test
The sandbox_set_enable_memio() should only ever be set during sandbox testing, not within driver itself, move it back to test/ . Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/dm/nvmxip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dm/nvmxip.c b/test/dm/nvmxip.c
index 89bf481f616..f0ad47d4efe 100644
--- a/test/dm/nvmxip.c
+++ b/test/dm/nvmxip.c
@@ -103,6 +103,8 @@ static int dm_test_nvmxip(struct unit_test_state *uts)
void *buffer = NULL;
unsigned long flashsz;
+ sandbox_set_enable_memio(true);
+
/* set the flash content first for both devices */
dm_nvmxip_flash_sanity(uts, 0, NULL);
dm_nvmxip_flash_sanity(uts, 1, NULL);