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

Commit 8dab3157 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: reset: block SDI dynamic enablement"

parents c8963db7 5796bd2e
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