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

diff --git a/a/1.txt b/N1/1.txt
index 1eb2ea8..8e3f435 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -1,65 +1,3 @@
-From: Domenico Andreoli <domenico.andreoli@linux.com>
-
-Proof of concept: max8907 as provider of reset hooks.
-
-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>
----
- drivers/mfd/Kconfig   |    1 +
- drivers/mfd/max8907.c |   13 ++++++++-----
- 2 files changed, 9 insertions(+), 5 deletions(-)
-
-Index: b/drivers/mfd/Kconfig
-===================================================================
---- a/drivers/mfd/Kconfig
-+++ b/drivers/mfd/Kconfig
-@@ -339,6 +339,7 @@ config MFD_MAX8907
- 	tristate "Maxim Semiconductor MAX8907 PMIC Support"
- 	select MFD_CORE
- 	depends on I2C=y
-+	select MACHINE_RESET
- 	select REGMAP_I2C
- 	select REGMAP_IRQ
- 	help
-Index: b/drivers/mfd/max8907.c
-===================================================================
---- a/drivers/mfd/max8907.c
-+++ b/drivers/mfd/max8907.c
-@@ -20,6 +20,7 @@
- #include <linux/of_device.h>
- #include <linux/regmap.h>
- #include <linux/slab.h>
-+#include <linux/machine_reset.h>
- 
- static struct mfd_cell max8907_cells[] = {
- 	{ .name = "max8907-regulator", },
-@@ -176,9 +177,9 @@ static const struct regmap_irq_chip max8
- 	.num_irqs = ARRAY_SIZE(max8907_rtc_irqs),
- };
- 
--static struct max8907 *max8907_pm_off;
--static void max8907_power_off(void)
-+static void max8907_power_off(void *dev)
- {
-+	struct max8907 *max8907_pm_off = dev;
- 	regmap_update_bits(max8907_pm_off->regmap_gen, MAX8907_REG_RESET_CNFG,
- 			MAX8907_MASK_POWER_OFF, MAX8907_MASK_POWER_OFF);
- }
-@@ -266,9 +267,11 @@ static int max8907_i2c_probe(struct i2c_
- 		goto err_add_devices;
- 	}
- 
--	if (pm_off && !pm_power_off) {
--		max8907_pm_off = max8907;
--		pm_power_off = max8907_power_off;
-+	if (pm_off) {
-+		struct reset_hook hook;
-+		reset_hook_init(&hook);
-+		hook.power_off = max8907_power_off;
-+		set_machine_reset(RESET_POWER_OFF, &hook, max8907);
- 	}
- 
- 	return 0;
+An embedded and charset-unspecified text was scrubbed...
+Name: max8907-machine-reset.patch
+URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131031/381822e0/attachment.ksh>
diff --git a/a/content_digest b/N1/content_digest
index 58a1706..6e53736 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,82 +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 10/11] max8907: use the common machine reset handling\0"
  "Date\0Thu, 31 Oct 2013 07:27:18 +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>
- " Domenico Andreoli <domenico.andreoli@linux.com>\0"
+ "To\0linux-arm-kernel@lists.infradead.org\0"
  "\00:1\0"
- "fn\0max8907-machine-reset.patch\0"
  "b\0"
- "From: Domenico Andreoli <domenico.andreoli@linux.com>\n"
- "\n"
- "Proof of concept: max8907 as provider of reset hooks.\n"
- "\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"
- " drivers/mfd/Kconfig   |    1 +\n"
- " drivers/mfd/max8907.c |   13 ++++++++-----\n"
- " 2 files changed, 9 insertions(+), 5 deletions(-)\n"
- "\n"
- "Index: b/drivers/mfd/Kconfig\n"
- "===================================================================\n"
- "--- a/drivers/mfd/Kconfig\n"
- "+++ b/drivers/mfd/Kconfig\n"
- "@@ -339,6 +339,7 @@ config MFD_MAX8907\n"
- " \ttristate \"Maxim Semiconductor MAX8907 PMIC Support\"\n"
- " \tselect MFD_CORE\n"
- " \tdepends on I2C=y\n"
- "+\tselect MACHINE_RESET\n"
- " \tselect REGMAP_I2C\n"
- " \tselect REGMAP_IRQ\n"
- " \thelp\n"
- "Index: b/drivers/mfd/max8907.c\n"
- "===================================================================\n"
- "--- a/drivers/mfd/max8907.c\n"
- "+++ b/drivers/mfd/max8907.c\n"
- "@@ -20,6 +20,7 @@\n"
- " #include <linux/of_device.h>\n"
- " #include <linux/regmap.h>\n"
- " #include <linux/slab.h>\n"
- "+#include <linux/machine_reset.h>\n"
- " \n"
- " static struct mfd_cell max8907_cells[] = {\n"
- " \t{ .name = \"max8907-regulator\", },\n"
- "@@ -176,9 +177,9 @@ static const struct regmap_irq_chip max8\n"
- " \t.num_irqs = ARRAY_SIZE(max8907_rtc_irqs),\n"
- " };\n"
- " \n"
- "-static struct max8907 *max8907_pm_off;\n"
- "-static void max8907_power_off(void)\n"
- "+static void max8907_power_off(void *dev)\n"
- " {\n"
- "+\tstruct max8907 *max8907_pm_off = dev;\n"
- " \tregmap_update_bits(max8907_pm_off->regmap_gen, MAX8907_REG_RESET_CNFG,\n"
- " \t\t\tMAX8907_MASK_POWER_OFF, MAX8907_MASK_POWER_OFF);\n"
- " }\n"
- "@@ -266,9 +267,11 @@ static int max8907_i2c_probe(struct i2c_\n"
- " \t\tgoto err_add_devices;\n"
- " \t}\n"
- " \n"
- "-\tif (pm_off && !pm_power_off) {\n"
- "-\t\tmax8907_pm_off = max8907;\n"
- "-\t\tpm_power_off = max8907_power_off;\n"
- "+\tif (pm_off) {\n"
- "+\t\tstruct reset_hook hook;\n"
- "+\t\treset_hook_init(&hook);\n"
- "+\t\thook.power_off = max8907_power_off;\n"
- "+\t\tset_machine_reset(RESET_POWER_OFF, &hook, max8907);\n"
- " \t}\n"
- " \n"
- " \treturn 0;"
+ "An embedded and charset-unspecified text was scrubbed...\n"
+ "Name: max8907-machine-reset.patch\n"
+ URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131031/381822e0/attachment.ksh>
 
-e0213d70e1d2831b72f9b88d297ea269822ac9040b32fbc27ae1bcf8cc25b015
+19ed52519c666f2f8d0ba96b8cce29a884d216093a0fbfe1bef05e46008f7a07

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.