All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20131031063000.361406973@linux.com>

diff --git a/a/1.txt b/N1/1.txt
index c90d31a..e5cb6af 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -1,96 +1,3 @@
-From: Domenico Andreoli <domenico.andreoli@linux.com>
-
-Proof of concept: u300 as provider of reset hooks.
-
-Cc: Linus Walleij <linus.walleij@linaro.org>
-Cc: Russell King <linux@arm.linux.org.uk>
-Cc: Arnd Bergmann <arnd@arndb.de>
-Cc: Olof Johansson <olof@lixom.net>
-Cc: linux-arm-kernel@lists.infradead.org
-Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>
----
- arch/arm/mach-u300/regulator.c |   23 ++++++++++++++---------
- drivers/regulator/Kconfig      |    1 +
- 2 files changed, 15 insertions(+), 9 deletions(-)
-
-Index: b/drivers/regulator/Kconfig
-===================================================================
---- a/drivers/regulator/Kconfig
-+++ b/drivers/regulator/Kconfig
-@@ -106,6 +106,7 @@ config REGULATOR_AB3100
- 	tristate "ST-Ericsson AB3100 Regulator functions"
- 	depends on AB3100_CORE
- 	default y if AB3100_CORE
-+	select MACHINE_RESET
- 	help
- 	 These regulators correspond to functionality in the
- 	 AB3100 analog baseband dealing with power regulators
-Index: b/arch/arm/mach-u300/regulator.c
-===================================================================
---- a/arch/arm/mach-u300/regulator.c
-+++ b/arch/arm/mach-u300/regulator.c
-@@ -17,6 +17,7 @@
- #include <linux/regulator/consumer.h>
- #include <linux/mfd/syscon.h>
- #include <linux/regmap.h>
-+#include <linux/machine_reset.h>
- 
- /* Power Management Control 16bit (R/W) */
- #define U300_SYSCON_PMCR					(0x50)
-@@ -24,20 +25,14 @@
- #define U300_SYSCON_PMCR_PWR_MGNT_ENABLE			(0x0001)
- 
- /*
-- * Regulators that power the board and chip and which are
-- * not copuled to specific drivers are hogged in these
-- * instances.
-- */
--static struct regulator *main_power_15;
--
--/*
-  * This function is used from pm.h to shut down the system by
-  * resetting all regulators in turn and then disable regulator
-  * LDO D (main power).
-  */
--void u300_pm_poweroff(void)
-+void u300_pm_poweroff(void *dev)
- {
- 	sigset_t old, all;
-+	struct regulator *main_power_15 = dev;
- 
- 	sigfillset(&all);
- 	if (!sigprocmask(SIG_BLOCK, &all, &old)) {
-@@ -51,6 +46,11 @@ void u300_pm_poweroff(void)
- 	return;
- }
- 
-+static void u300_reset_hook_release(void *dev)
-+{
-+	regulator_put(dev);
-+}
-+
- /*
-  * Hog the regulators needed to power up the board.
-  */
-@@ -58,7 +58,9 @@ static int __init __u300_init_boardpower
- {
- 	struct device_node *np = pdev->dev.of_node;
- 	struct device_node *syscon_np;
-+	struct regulator *main_power_15;
- 	struct regmap *regmap;
-+	struct reset_hook hook;
- 	int err;
- 
- 	pr_info("U300: setting up board power\n");
-@@ -98,7 +100,10 @@ static int __init __u300_init_boardpower
- 			   U300_SYSCON_PMCR_DCON_ENABLE, 0);
- 
- 	/* Register globally exported PM poweroff hook */
--	pm_power_off = u300_pm_poweroff;
-+	reset_hook_init(&hook);
-+	hook.power_off = u300_pm_poweroff;
-+	hook.release = u300_reset_hook_release;
-+	set_machine_reset(RESET_POWER_OFF, &hook, main_power_15);
- 
- 	return 0;
- }
+An embedded and charset-unspecified text was scrubbed...
+Name: arm-machine-reset-u300.patch
+URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131031/48d951b1/attachment.ksh>
diff --git a/a/content_digest b/N1/content_digest
index 6c12538..6b5860a 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,114 +1,12 @@
  "ref\020131031062708.520968323@linux.com\0"
- "From\0Domenico Andreoli <domenico.andreoli@linux.com>\0"
+ "From\0domenico.andreoli@linux.com (Domenico Andreoli)\0"
  "Subject\0[PATCH 08/11] ARM: u300: use the common machine reset handling\0"
  "Date\0Thu, 31 Oct 2013 07:27:16 +0100\0"
- "To\0linux-arch@vger.kernel.org\0"
- "Cc\0linux-arm-kernel@lists.infradead.org"
-  linux-mips@lvger.kernel.org
-  Russell King <linux@arm.linux.org.uk>
-  Arnd Bergmann <arnd@arndb.de>
-  Olof Johansson <olof@lixom.net>
-  Ralf Baechle <ralf@linux-mips.org>
-  Linus Walleij <linus.walleij@linaro.org>
- " Domenico Andreoli <domenico.andreoli@linux.com>\0"
+ "To\0linux-arm-kernel@lists.infradead.org\0"
  "\00:1\0"
- "fn\0arm-machine-reset-u300.patch\0"
  "b\0"
- "From: Domenico Andreoli <domenico.andreoli@linux.com>\n"
- "\n"
- "Proof of concept: u300 as provider of reset hooks.\n"
- "\n"
- "Cc: Linus Walleij <linus.walleij@linaro.org>\n"
- "Cc: Russell King <linux@arm.linux.org.uk>\n"
- "Cc: Arnd Bergmann <arnd@arndb.de>\n"
- "Cc: Olof Johansson <olof@lixom.net>\n"
- "Cc: linux-arm-kernel@lists.infradead.org\n"
- "Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>\n"
- "---\n"
- " arch/arm/mach-u300/regulator.c |   23 ++++++++++++++---------\n"
- " drivers/regulator/Kconfig      |    1 +\n"
- " 2 files changed, 15 insertions(+), 9 deletions(-)\n"
- "\n"
- "Index: b/drivers/regulator/Kconfig\n"
- "===================================================================\n"
- "--- a/drivers/regulator/Kconfig\n"
- "+++ b/drivers/regulator/Kconfig\n"
- "@@ -106,6 +106,7 @@ config REGULATOR_AB3100\n"
- " \ttristate \"ST-Ericsson AB3100 Regulator functions\"\n"
- " \tdepends on AB3100_CORE\n"
- " \tdefault y if AB3100_CORE\n"
- "+\tselect MACHINE_RESET\n"
- " \thelp\n"
- " \t These regulators correspond to functionality in the\n"
- " \t AB3100 analog baseband dealing with power regulators\n"
- "Index: b/arch/arm/mach-u300/regulator.c\n"
- "===================================================================\n"
- "--- a/arch/arm/mach-u300/regulator.c\n"
- "+++ b/arch/arm/mach-u300/regulator.c\n"
- "@@ -17,6 +17,7 @@\n"
- " #include <linux/regulator/consumer.h>\n"
- " #include <linux/mfd/syscon.h>\n"
- " #include <linux/regmap.h>\n"
- "+#include <linux/machine_reset.h>\n"
- " \n"
- " /* Power Management Control 16bit (R/W) */\n"
- " #define U300_SYSCON_PMCR\t\t\t\t\t(0x50)\n"
- "@@ -24,20 +25,14 @@\n"
- " #define U300_SYSCON_PMCR_PWR_MGNT_ENABLE\t\t\t(0x0001)\n"
- " \n"
- " /*\n"
- "- * Regulators that power the board and chip and which are\n"
- "- * not copuled to specific drivers are hogged in these\n"
- "- * instances.\n"
- "- */\n"
- "-static struct regulator *main_power_15;\n"
- "-\n"
- "-/*\n"
- "  * This function is used from pm.h to shut down the system by\n"
- "  * resetting all regulators in turn and then disable regulator\n"
- "  * LDO D (main power).\n"
- "  */\n"
- "-void u300_pm_poweroff(void)\n"
- "+void u300_pm_poweroff(void *dev)\n"
- " {\n"
- " \tsigset_t old, all;\n"
- "+\tstruct regulator *main_power_15 = dev;\n"
- " \n"
- " \tsigfillset(&all);\n"
- " \tif (!sigprocmask(SIG_BLOCK, &all, &old)) {\n"
- "@@ -51,6 +46,11 @@ void u300_pm_poweroff(void)\n"
- " \treturn;\n"
- " }\n"
- " \n"
- "+static void u300_reset_hook_release(void *dev)\n"
- "+{\n"
- "+\tregulator_put(dev);\n"
- "+}\n"
- "+\n"
- " /*\n"
- "  * Hog the regulators needed to power up the board.\n"
- "  */\n"
- "@@ -58,7 +58,9 @@ static int __init __u300_init_boardpower\n"
- " {\n"
- " \tstruct device_node *np = pdev->dev.of_node;\n"
- " \tstruct device_node *syscon_np;\n"
- "+\tstruct regulator *main_power_15;\n"
- " \tstruct regmap *regmap;\n"
- "+\tstruct reset_hook hook;\n"
- " \tint err;\n"
- " \n"
- " \tpr_info(\"U300: setting up board power\\n\");\n"
- "@@ -98,7 +100,10 @@ static int __init __u300_init_boardpower\n"
- " \t\t\t   U300_SYSCON_PMCR_DCON_ENABLE, 0);\n"
- " \n"
- " \t/* Register globally exported PM poweroff hook */\n"
- "-\tpm_power_off = u300_pm_poweroff;\n"
- "+\treset_hook_init(&hook);\n"
- "+\thook.power_off = u300_pm_poweroff;\n"
- "+\thook.release = u300_reset_hook_release;\n"
- "+\tset_machine_reset(RESET_POWER_OFF, &hook, main_power_15);\n"
- " \n"
- " \treturn 0;\n"
-  }
+ "An embedded and charset-unspecified text was scrubbed...\n"
+ "Name: arm-machine-reset-u300.patch\n"
+ URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131031/48d951b1/attachment.ksh>
 
-a778453b3499a52861c4d213102282b3349a18f124fe58909381e0ea7b4cd499
+ee45d74ec14dd600748e72a5123d1bdef3c5e5f920dfe18ec0a50dea2985b4c0

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.