diff options
author | Simon Glass <sjg@chromium.org> | 2019-05-18 11:59:43 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-10 16:52:58 -0600 |
commit | 9072326a6ab47ad87a0be46f4d8619b60c2d8515 (patch) | |
tree | 1348c3c4ebab074d4f0e5ca85a3ef852a02721ce /drivers/sysreset | |
parent | 87dac6b0749961032185833b760e1c31fa73c64c (diff) | |
download | u-boot-9072326a6ab47ad87a0be46f4d8619b60c2d8515.zip u-boot-9072326a6ab47ad87a0be46f4d8619b60c2d8515.tar.gz u-boot-9072326a6ab47ad87a0be46f4d8619b60c2d8515.tar.bz2 |
sandbox: Exit when SYSRESET_POWER_OFF is requested
At present this returns but it seems better to just exit sandbox
immediately.
Signed-off-by: Simon Glass <sjg@chromium.org>
reset
Diffstat (limited to 'drivers/sysreset')
-rw-r--r-- | drivers/sysreset/sysreset_sandbox.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/sysreset/sysreset_sandbox.c b/drivers/sysreset/sysreset_sandbox.c index 38e2a7e..7dfd894 100644 --- a/drivers/sysreset/sysreset_sandbox.c +++ b/drivers/sysreset/sysreset_sandbox.c @@ -66,6 +66,7 @@ static int sandbox_sysreset_request(struct udevice *dev, enum sysreset_t type) case SYSRESET_POWER_OFF: if (!state->sysreset_allowed[type]) return -EACCES; + sandbox_exit(); default: return -ENOSYS; } |