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

Commit f4aff60c authored by Shiju Mathew's avatar Shiju Mathew
Browse files

power: bcl: Add info logs for BCL mode and hotplug updates



This patch will add info logs when there is any update
to bcl mode and hotplug masks. This is required since
this is the only way to find out if these critical
features are updated for a short period of time such
as during booting.

Change-Id: Ibc00d3e3a4e2c5ce971c7777a4a7dc0386d26da6
Signed-off-by: default avatarShiju Mathew <shijum@codeaurora.org>
parent 45e48cf2
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, 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
@@ -874,12 +874,15 @@ mode_store(struct device *dev, struct device_attribute *attr,
	if (!gbcl)
		return -EPERM;

	if (!strcmp(buf, "enable"))
	if (!strcmp(buf, "enable")) {
		bcl_mode_set(BCL_DEVICE_ENABLED);
	else if (!strcmp(buf, "disable"))
		pr_info("bcl enabled\n");
	} else if (!strcmp(buf, "disable")) {
		bcl_mode_set(BCL_DEVICE_DISABLED);
	else
		pr_info("bcl disabled\n");
	} else {
		return -EINVAL;
	}

	return count;
}
@@ -1179,6 +1182,7 @@ static ssize_t hotplug_mask_store(struct device *dev,
		return ret;

	bcl_hotplug_mask = val;
	pr_info("bcl hotplug mask updated to %d\n", bcl_hotplug_mask);

	return count;
}
@@ -1197,6 +1201,7 @@ static ssize_t hotplug_soc_mask_store(struct device *dev,
		return ret;

	bcl_soc_hotplug_mask = val;
	pr_info("bcl soc hotplug mask updated to %d\n", bcl_soc_hotplug_mask);

	return count;
}