Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5796bd2e authored by Prateek Sood's avatar Prateek Sood
Browse files

power: reset: block SDI dynamic enablement



Dynamic enable of SDI is not supported. Blocking
dynamic enablement of SDI from module parameter.

Change-Id: I35b5760342b40ca07fb648f3cc9783d4b4dff3f3
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
parent 5598d766
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -190,6 +190,11 @@ static int dload_set(const char *val, const struct kernel_param *kp)

	int old_val = download_mode;

	if (!download_mode) {
		pr_err("Error: SDI dynamic enablement is not supported\n");
		return -EINVAL;
	}

	ret = param_set_int(val, kp);

	if (ret)
@@ -203,6 +208,9 @@ static int dload_set(const char *val, const struct kernel_param *kp)

	set_dload_mode(download_mode);

	if (!download_mode)
		scm_disable_sdi();

	return 0;
}
#else