From 9072326a6ab47ad87a0be46f4d8619b60c2d8515 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 18 May 2019 11:59:43 -0600 Subject: 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 reset --- drivers/sysreset/sysreset_sandbox.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/sysreset') diff --git a/drivers/sysreset/sysreset_sandbox.c b/drivers/sysreset/sysreset_sandbox.c index 38e2a7e241..7dfd89460f 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; } -- cgit v1.2.3