From e2187c16d6672279b0c937d73cbc8998d88cfe3a Mon Sep 17 00:00:00 2001 From: Ajay Nandakumar Date: Wed, 24 Jan 2018 10:51:53 +0530 Subject: [PATCH] mods: Suspend adsp instead of stopping Bug 200381062 Change-Id: I36d7eba4159209606adf89fdf41615e39ff87d5c Signed-off-by: Ajay Nandakumar Reviewed-on: https://git-master.nvidia.com/r/1645024 Reviewed-by: Sachin Nikam Tested-by: Sachin Nikam Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/misc/mods/mods_adsp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/mods/mods_adsp.c b/drivers/misc/mods/mods_adsp.c index 244dcc05..0ed04e8c 100644 --- a/drivers/misc/mods/mods_adsp.c +++ b/drivers/misc/mods/mods_adsp.c @@ -1,7 +1,7 @@ /* * mods_adsp.c - This file is part of NVIDIA MODS kernel driver. * - * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. * * NVIDIA MODS kernel driver is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License, @@ -33,8 +33,7 @@ int esc_mods_adsp_start(struct file *pfile) int esc_mods_adsp_stop(struct file *pfile) { - nvadsp_os_stop(); - return OK; + return nvadsp_os_suspend(); } int esc_mods_adsp_run_app(struct file *pfile, struct MODS_ADSP_RUN_APP_INFO *p)