All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] mfd: tps65217: Add power-button and IRQ support
@ 2016-06-20 10:50 Marcin Niestroj
  2016-06-20 10:50 ` [PATCH v4 1/5] mfd: tps65217: Add support for IRQs Marcin Niestroj
                   ` (4 more replies)
  0 siblings, 5 replies; 27+ messages in thread
From: Marcin Niestroj @ 2016-06-20 10:50 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko, Marcin Niestroj

Hi,

the following patches add tps65217 power button support and make it usable
with am335x boards. They also fix a NULL dereference in tps65217 charger
subsystem and add possibility to use IRQs instead of polling task to
update AC power state.

Changes v3 -> v4:
 * Add irq_set_parent() during irq init (suggested by Grygorii)
 * Remove hardcoded IRQ trigger type, rely on DT bindings instead
   (suggested by Grygorii)
 * Rebased and tested on top of v4.7-rc4

Changes v2 -> v3 (suggested by Lee):
 * Alphabetical reorder of includes
 * Rename enum tps65217_irqs -> tps65217_irq_type, so we won't confuse
   it with structure object with the same name.
 * Fix inconsistent order of irq_enable and irq_disable
 * Remove redundant 'else' when returning from tps65217_irq_thread

Changes v1 -> v2:
 * Added information about parent device in tps65217 power button
   device-tree binding documentation (suggested by Rob)
 * Rebased and tested on top of v4.7-rc3

Marcin Niestroj (5):
  mfd: tps65217: Add support for IRQs
  power_supply: tps65217-charger: Fix NULL deref during property export
  power_supply: tps65217-charger: Add support for IRQs
  mfd: tps65217: Add power button as subdevice
  Input: Add tps65217 power button driver

 .../bindings/input/tps65217-pwrbutton.txt          |  17 ++
 drivers/input/misc/Kconfig                         |  10 +
 drivers/input/misc/Makefile                        |   1 +
 drivers/input/misc/tps65217-pwrbutton.c            | 131 +++++++++++++
 drivers/mfd/Kconfig                                |   1 +
 drivers/mfd/tps65217.c                             | 205 ++++++++++++++++++++-
 drivers/power/tps65217_charger.c                   |  46 ++++-
 include/linux/mfd/tps65217.h                       |  12 ++
 8 files changed, 407 insertions(+), 16 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/input/tps65217-pwrbutton.txt
 create mode 100644 drivers/input/misc/tps65217-pwrbutton.c

-- 
2.9.0


^ permalink raw reply	[flat|nested] 27+ messages in thread

* [PATCH v4 1/5] mfd: tps65217: Add support for IRQs
  2016-06-20 10:50 [PATCH v4 0/5] mfd: tps65217: Add power-button and IRQ support Marcin Niestroj
@ 2016-06-20 10:50 ` Marcin Niestroj
  2016-06-24  9:58   ` Grygorii Strashko
  2016-06-20 10:50 ` [PATCH v4 2/5] power_supply: tps65217-charger: Fix NULL deref during property export Marcin Niestroj
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 27+ messages in thread
From: Marcin Niestroj @ 2016-06-20 10:50 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko, Marcin Niestroj

Add support for handling IRQs: power button, AC and USB power state
changes. Mask and interrupt bits are shared within one register, which
prevents us to use regmap_irq implementation. New irq_domain is created in
order to add interrupt handling for each tps65217's subsystem. IRQ
resources have been added for charger subsystem to be able to notify about
AC and USB state changes.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
---
Changes v3 -> v4 (suggested by Grygorii):
 * Add irq_set_parent() during irq init
 * Remove hardcoded IRQ trigger type, rely on DT bindings instead

Changes v2 -> v3 (suggested by Lee):
 * Alphabetical reorder of includes
 * Rename enum tps65217_irqs -> tps65217_irq_type, so we won't confuse
   it with structure object with the same name.
 * Fix inconsistent order of irq_enable and irq_disable
 * Remove redundant 'else' when returning from tps65217_irq_thread

Changes v1 -> v2: none

 drivers/mfd/Kconfig          |   1 +
 drivers/mfd/tps65217.c       | 195 +++++++++++++++++++++++++++++++++++++++++--
 include/linux/mfd/tps65217.h |  12 +++
 3 files changed, 200 insertions(+), 8 deletions(-)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 1bcf601..f8c9580 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -1200,6 +1200,7 @@ config MFD_TPS65217
 	depends on I2C
 	select MFD_CORE
 	select REGMAP_I2C
+	select IRQ_DOMAIN
 	help
 	  If you say yes here you get support for the TPS65217 series of
 	  Power Management / White LED chips.
diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
index 049a6fc..41b5d59 100644
--- a/drivers/mfd/tps65217.c
+++ b/drivers/mfd/tps65217.c
@@ -15,22 +15,99 @@
  * GNU General Public License for more details.
  */
 
-#include <linux/kernel.h>
 #include <linux/device.h>
-#include <linux/module.h>
-#include <linux/platform_device.h>
+#include <linux/err.h>
 #include <linux/init.h>
+#include <linux/interrupt.h>
 #include <linux/i2c.h>
-#include <linux/slab.h>
-#include <linux/regmap.h>
-#include <linux/err.h>
+#include <linux/irq.h>
+#include <linux/irqdomain.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
+#include <linux/slab.h>
 
 #include <linux/mfd/core.h>
 #include <linux/mfd/tps65217.h>
 
-static const struct mfd_cell tps65217s[] = {
+static struct resource charger_resources[] = {
+	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_AC, "AC"),
+	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
+};
+
+struct tps65217_irq {
+	int mask;
+	int interrupt;
+};
+
+static const struct tps65217_irq tps65217_irqs[] = {
+	[TPS65217_IRQ_PB] = {
+		.mask = TPS65217_INT_PBM,
+		.interrupt = TPS65217_INT_PBI,
+	},
+	[TPS65217_IRQ_AC] = {
+		.mask = TPS65217_INT_ACM,
+		.interrupt = TPS65217_INT_ACI,
+	},
+	[TPS65217_IRQ_USB] = {
+		.mask = TPS65217_INT_USBM,
+		.interrupt = TPS65217_INT_USBI,
+	},
+};
+
+static void tps65217_irq_lock(struct irq_data *data)
+{
+	struct tps65217 *tps = irq_data_get_irq_chip_data(data);
+
+	mutex_lock(&tps->irq_lock);
+}
+
+static void tps65217_irq_sync_unlock(struct irq_data *data)
+{
+	struct tps65217 *tps = irq_data_get_irq_chip_data(data);
+	int ret;
+
+	ret = tps65217_reg_write(tps, TPS65217_REG_INT, tps->irq_mask,
+				TPS65217_PROTECT_NONE);
+	if (ret != 0)
+		dev_err(tps->dev, "Failed to sync IRQ masks\n");
+
+	mutex_unlock(&tps->irq_lock);
+}
+
+static const inline struct tps65217_irq *
+irq_to_tps65217_irq(struct tps65217 *tps, struct irq_data *data)
+{
+	return &tps65217_irqs[data->hwirq];
+}
+
+static void tps65217_irq_enable(struct irq_data *data)
+{
+	struct tps65217 *tps = irq_data_get_irq_chip_data(data);
+	const struct tps65217_irq *irq_data = irq_to_tps65217_irq(tps, data);
+
+	tps->irq_mask &= ~irq_data->mask;
+}
+
+static void tps65217_irq_disable(struct irq_data *data)
+{
+	struct tps65217 *tps = irq_data_get_irq_chip_data(data);
+	const struct tps65217_irq *irq_data = irq_to_tps65217_irq(tps, data);
+
+	tps->irq_mask |= irq_data->mask;
+}
+
+static struct irq_chip tps65217_irq_chip = {
+	.irq_bus_lock		= tps65217_irq_lock,
+	.irq_bus_sync_unlock	= tps65217_irq_sync_unlock,
+	.irq_enable		= tps65217_irq_enable,
+	.irq_disable		= tps65217_irq_disable,
+};
+
+static struct mfd_cell tps65217s[] = {
 	{
 		.name = "tps65217-pmic",
 		.of_compatible = "ti,tps65217-pmic",
@@ -41,10 +118,90 @@ static const struct mfd_cell tps65217s[] = {
 	},
 	{
 		.name = "tps65217-charger",
+		.num_resources = ARRAY_SIZE(charger_resources),
+		.resources = charger_resources,
 		.of_compatible = "ti,tps65217-charger",
 	},
 };
 
+static irqreturn_t tps65217_irq_thread(int irq, void *data)
+{
+	struct tps65217 *tps = data;
+	unsigned int status;
+	bool handled = false;
+	int i;
+	int ret;
+
+	ret = tps65217_reg_read(tps, TPS65217_REG_INT, &status);
+	if (ret < 0) {
+		dev_err(tps->dev, "Failed to read IRQ status: %d\n",
+			ret);
+		return IRQ_NONE;
+	}
+
+	for (i = 0; i < ARRAY_SIZE(tps65217_irqs); i++) {
+		if (status & tps65217_irqs[i].interrupt) {
+			handle_nested_irq(irq_find_mapping(tps->irq_domain, i));
+			handled = true;
+		}
+	}
+
+	if (handled)
+		return IRQ_HANDLED;
+
+	return IRQ_NONE;
+}
+
+static int tps65217_irq_map(struct irq_domain *h, unsigned int virq,
+			irq_hw_number_t hw)
+{
+	struct tps65217 *tps = h->host_data;
+
+	irq_set_chip_data(virq, tps);
+	irq_set_chip_and_handler(virq, &tps65217_irq_chip, handle_edge_irq);
+	irq_set_nested_thread(virq, 1);
+	irq_set_parent(virq, tps->irq);
+	irq_set_noprobe(virq);
+
+	return 0;
+}
+
+static const struct irq_domain_ops tps65217_irq_domain_ops = {
+	.map = tps65217_irq_map,
+};
+
+static int tps65217_irq_init(struct tps65217 *tps, int irq)
+{
+	int ret;
+
+	mutex_init(&tps->irq_lock);
+	tps->irq = irq;
+
+	/* Mask all interrupt sources */
+	tps->irq_mask = (TPS65217_INT_RESERVEDM | TPS65217_INT_PBM
+			| TPS65217_INT_ACM | TPS65217_INT_USBM);
+	tps65217_reg_write(tps, TPS65217_REG_INT, tps->irq_mask,
+			TPS65217_PROTECT_NONE);
+
+	tps->irq_domain = irq_domain_add_linear(tps->dev->of_node,
+		TPS65217_NUM_IRQ, &tps65217_irq_domain_ops, tps);
+	if (!tps->irq_domain) {
+		dev_err(tps->dev, "Could not create IRQ domain\n");
+		return -ENOMEM;
+	}
+
+	ret = devm_request_threaded_irq(tps->dev, irq, NULL,
+					tps65217_irq_thread, IRQF_ONESHOT,
+					"tps65217-irq", tps);
+	if (ret) {
+		dev_err(tps->dev, "Failed to request IRQ %d: %d\n",
+			irq, ret);
+		return ret;
+	}
+
+	return 0;
+}
+
 /**
  * tps65217_reg_read: Read a single tps65217 register.
  *
@@ -149,11 +306,22 @@ int tps65217_clear_bits(struct tps65217 *tps, unsigned int reg,
 }
 EXPORT_SYMBOL_GPL(tps65217_clear_bits);
 
+static bool tps65217_volatile_reg(struct device *dev, unsigned int reg)
+{
+	switch (reg) {
+	case TPS65217_REG_INT:
+		return true;
+	default:
+		return false;
+	}
+}
+
 static const struct regmap_config tps65217_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 
 	.max_register = TPS65217_REG_MAX,
+	.volatile_reg = tps65217_volatile_reg,
 };
 
 static const struct of_device_id tps65217_of_match[] = {
@@ -205,8 +373,19 @@ static int tps65217_probe(struct i2c_client *client,
 		return ret;
 	}
 
+	if (client->irq) {
+		tps65217_irq_init(tps, client->irq);
+	} else {
+		int i;
+
+		/* Don't tell children about IRQ resources which won't fire */
+		for (i = 0; i < ARRAY_SIZE(tps65217s); i++)
+			tps65217s[i].num_resources = 0;
+	}
+
 	ret = devm_mfd_add_devices(tps->dev, -1, tps65217s,
-				   ARRAY_SIZE(tps65217s), NULL, 0, NULL);
+				   ARRAY_SIZE(tps65217s), NULL, 0,
+				   tps->irq_domain);
 	if (ret < 0) {
 		dev_err(tps->dev, "mfd_add_devices failed: %d\n", ret);
 		return ret;
diff --git a/include/linux/mfd/tps65217.h b/include/linux/mfd/tps65217.h
index ac7fba4..9bccf98 100644
--- a/include/linux/mfd/tps65217.h
+++ b/include/linux/mfd/tps65217.h
@@ -73,6 +73,7 @@
 #define TPS65217_PPATH_AC_CURRENT_MASK	0x0C
 #define TPS65217_PPATH_USB_CURRENT_MASK	0x03
 
+#define TPS65217_INT_RESERVEDM		BIT(7)
 #define TPS65217_INT_PBM		BIT(6)
 #define TPS65217_INT_ACM		BIT(5)
 #define TPS65217_INT_USBM		BIT(4)
@@ -233,6 +234,13 @@ struct tps65217_bl_pdata {
 	int dft_brightness;
 };
 
+enum tps65217_irq_type {
+	TPS65217_IRQ_PB,
+	TPS65217_IRQ_AC,
+	TPS65217_IRQ_USB,
+	TPS65217_NUM_IRQ
+};
+
 /**
  * struct tps65217_board - packages regulator init data
  * @tps65217_regulator_data: regulator initialization values
@@ -257,6 +265,10 @@ struct tps65217 {
 	unsigned long id;
 	struct regulator_desc desc[TPS65217_NUM_REGULATOR];
 	struct regmap *regmap;
+	struct irq_domain *irq_domain;
+	struct mutex irq_lock;
+	u8 irq_mask;
+	int irq;
 };
 
 static inline struct tps65217 *dev_to_tps65217(struct device *dev)
-- 
2.9.0


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH v4 2/5] power_supply: tps65217-charger: Fix NULL deref during property export
  2016-06-20 10:50 [PATCH v4 0/5] mfd: tps65217: Add power-button and IRQ support Marcin Niestroj
  2016-06-20 10:50 ` [PATCH v4 1/5] mfd: tps65217: Add support for IRQs Marcin Niestroj
@ 2016-06-20 10:50 ` Marcin Niestroj
  2016-06-20 13:23   ` Krzysztof Kozlowski
  2016-06-20 10:50 ` [PATCH v4 3/5] power_supply: tps65217-charger: Add support for IRQs Marcin Niestroj
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 27+ messages in thread
From: Marcin Niestroj @ 2016-06-20 10:50 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko, Marcin Niestroj

This bug leads to:

[    1.906411] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
[    1.914878] pgd = c0004000
[    1.917786] [0000000c] *pgd=00000000
[    1.921536] Internal error: Oops: 5 [#1] SMP ARM
[    1.926357] Modules linked in:
[    1.929556] CPU: 0 PID: 14 Comm: kworker/0:1 Not tainted 4.4.5 #18
[    1.936006] Hardware name: Generic AM33XX (Flattened Device Tree)
[    1.942383] Workqueue: events power_supply_changed_work
[    1.947842] task: de2c41c0 ti: de2c8000 task.ti: de2c8000
[    1.953483] PC is at tps65217_ac_get_property+0x14/0x28
[    1.958937] LR is at tps65217_ac_get_property+0x10/0x28

Driver was trying to use drv_data in property get handler. However drv_data
was not set, so it caused NULL pointer dereference. This patch properly
sets drv_data during probe by power_supply_config parameter, so the
property get handler works as desired.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
---
Changes v1 -> v4: none

 drivers/power/tps65217_charger.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/power/tps65217_charger.c b/drivers/power/tps65217_charger.c
index d9f5673..73dfae4 100644
--- a/drivers/power/tps65217_charger.c
+++ b/drivers/power/tps65217_charger.c
@@ -197,6 +197,7 @@ static int tps65217_charger_probe(struct platform_device *pdev)
 {
 	struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent);
 	struct tps65217_charger *charger;
+	struct power_supply_config cfg = {};
 	int ret;
 
 	dev_dbg(&pdev->dev, "%s\n", __func__);
@@ -208,9 +209,12 @@ static int tps65217_charger_probe(struct platform_device *pdev)
 	charger->tps = tps;
 	charger->dev = &pdev->dev;
 
+	cfg.of_node = pdev->dev.of_node;
+	cfg.drv_data = charger;
+
 	charger->ac = devm_power_supply_register(&pdev->dev,
 						 &tps65217_charger_desc,
-						 NULL);
+						 &cfg);
 	if (IS_ERR(charger->ac)) {
 		dev_err(&pdev->dev, "failed: power supply register\n");
 		return PTR_ERR(charger->ac);
-- 
2.9.0


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH v4 3/5] power_supply: tps65217-charger: Add support for IRQs
  2016-06-20 10:50 [PATCH v4 0/5] mfd: tps65217: Add power-button and IRQ support Marcin Niestroj
  2016-06-20 10:50 ` [PATCH v4 1/5] mfd: tps65217: Add support for IRQs Marcin Niestroj
  2016-06-20 10:50 ` [PATCH v4 2/5] power_supply: tps65217-charger: Fix NULL deref during property export Marcin Niestroj
@ 2016-06-20 10:50 ` Marcin Niestroj
  2016-07-27  9:14   ` Marcin Niestroj
       [not found]   ` <20160620105056.25843-4-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
  2016-06-20 10:50 ` [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice Marcin Niestroj
  2016-06-20 10:50 ` [PATCH v4 5/5] Input: Add tps65217 power button driver Marcin Niestroj
  4 siblings, 2 replies; 27+ messages in thread
From: Marcin Niestroj @ 2016-06-20 10:50 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko, Marcin Niestroj

Make use of IRQ resources defined in tps65217 mfd code. If they are valid
we use them instead separate poll task, in order to define AC power state.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
---
Depends on patch 1 and 2 in series

Changes v1 -> v4: none

 drivers/power/tps65217_charger.c | 40 +++++++++++++++++++++++++++++++++-------
 1 file changed, 33 insertions(+), 7 deletions(-)

diff --git a/drivers/power/tps65217_charger.c b/drivers/power/tps65217_charger.c
index 73dfae4..c8c4a0c 100644
--- a/drivers/power/tps65217_charger.c
+++ b/drivers/power/tps65217_charger.c
@@ -46,6 +46,8 @@ struct tps65217_charger {
 	int	prev_ac_online;
 
 	struct task_struct	*poll_task;
+
+	int	irq;
 };
 
 static enum power_supply_property tps65217_ac_props[] = {
@@ -198,6 +200,7 @@ static int tps65217_charger_probe(struct platform_device *pdev)
 	struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent);
 	struct tps65217_charger *charger;
 	struct power_supply_config cfg = {};
+	int irq;
 	int ret;
 
 	dev_dbg(&pdev->dev, "%s\n", __func__);
@@ -220,18 +223,40 @@ static int tps65217_charger_probe(struct platform_device *pdev)
 		return PTR_ERR(charger->ac);
 	}
 
+	irq = platform_get_irq_byname(pdev, "AC");
+	if (irq < 0)
+		irq = -ENXIO;
+	charger->irq = irq;
+
 	ret = tps65217_config_charger(charger);
 	if (ret < 0) {
 		dev_err(charger->dev, "charger config failed, err %d\n", ret);
 		return ret;
 	}
 
-	charger->poll_task = kthread_run(tps65217_charger_poll_task,
-				      charger, "ktps65217charger");
-	if (IS_ERR(charger->poll_task)) {
-		ret = PTR_ERR(charger->poll_task);
-		dev_err(charger->dev, "Unable to run kthread err %d\n", ret);
-		return ret;
+	if (irq != -ENXIO) {
+		ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
+						tps65217_charger_irq,
+						0, "tps65217-charger",
+						charger);
+		if (ret) {
+			dev_err(charger->dev,
+				"Unable to register irq %d err %d\n", irq,
+				ret);
+			return ret;
+		}
+
+		/* Check current state */
+		tps65217_charger_irq(irq, charger);
+	} else {
+		charger->poll_task = kthread_run(tps65217_charger_poll_task,
+						charger, "ktps65217charger");
+		if (IS_ERR(charger->poll_task)) {
+			ret = PTR_ERR(charger->poll_task);
+			dev_err(charger->dev,
+				"Unable to run kthread err %d\n", ret);
+			return ret;
+		}
 	}
 
 	return 0;
@@ -241,7 +266,8 @@ static int tps65217_charger_remove(struct platform_device *pdev)
 {
 	struct tps65217_charger *charger = platform_get_drvdata(pdev);
 
-	kthread_stop(charger->poll_task);
+	if (charger->irq == -ENXIO)
+		kthread_stop(charger->poll_task);
 
 	return 0;
 }
-- 
2.9.0


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
  2016-06-20 10:50 [PATCH v4 0/5] mfd: tps65217: Add power-button and IRQ support Marcin Niestroj
                   ` (2 preceding siblings ...)
  2016-06-20 10:50 ` [PATCH v4 3/5] power_supply: tps65217-charger: Add support for IRQs Marcin Niestroj
@ 2016-06-20 10:50 ` Marcin Niestroj
       [not found]   ` <20160620105056.25843-5-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
  2016-08-29  9:08   ` Marcin Niestroj
  2016-06-20 10:50 ` [PATCH v4 5/5] Input: Add tps65217 power button driver Marcin Niestroj
  4 siblings, 2 replies; 27+ messages in thread
From: Marcin Niestroj @ 2016-06-20 10:50 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko, Marcin Niestroj

Add tps65217 power buttor subdevice with assigned IRQ resources.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
---
Depends on patch 1 in series

Changes v1 -> v4: none

 drivers/mfd/tps65217.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
index 41b5d59..57c8741 100644
--- a/drivers/mfd/tps65217.c
+++ b/drivers/mfd/tps65217.c
@@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
 	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
 };
 
+static struct resource pb_resources[] = {
+	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
+};
+
 struct tps65217_irq {
 	int mask;
 	int interrupt;
@@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
 		.resources = charger_resources,
 		.of_compatible = "ti,tps65217-charger",
 	},
+	{
+		.name = "tps65217-pwrbutton",
+		.num_resources = ARRAY_SIZE(pb_resources),
+		.resources = pb_resources,
+		.of_compatible = "ti,tps65217-pwrbutton",
+	},
 };
 
 static irqreturn_t tps65217_irq_thread(int irq, void *data)
-- 
2.9.0


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH v4 5/5] Input: Add tps65217 power button driver
  2016-06-20 10:50 [PATCH v4 0/5] mfd: tps65217: Add power-button and IRQ support Marcin Niestroj
                   ` (3 preceding siblings ...)
  2016-06-20 10:50 ` [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice Marcin Niestroj
@ 2016-06-20 10:50 ` Marcin Niestroj
  2016-06-21 13:17   ` Rob Herring
  4 siblings, 1 reply; 27+ messages in thread
From: Marcin Niestroj @ 2016-06-20 10:50 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko, Marcin Niestroj

This driver enables us to use tps65217's power button as KEY_POWER on
am335x boards (directly connected button in chiliboard, accessible pin
via expansion header in beaglebone). This patch has been tested with
chiliboard.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
---
Depends on patches 1-4 in series

Changes v2 -> v4: none

Changes v1 -> v2:
 * Added information about parent device in tps65217 power button
   device-tree binding documentation (suggested by Rob)

 .../bindings/input/tps65217-pwrbutton.txt          |  17 +++
 drivers/input/misc/Kconfig                         |  10 ++
 drivers/input/misc/Makefile                        |   1 +
 drivers/input/misc/tps65217-pwrbutton.c            | 131 +++++++++++++++++++++
 4 files changed, 159 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/tps65217-pwrbutton.txt
 create mode 100644 drivers/input/misc/tps65217-pwrbutton.c

diff --git a/Documentation/devicetree/bindings/input/tps65217-pwrbutton.txt b/Documentation/devicetree/bindings/input/tps65217-pwrbutton.txt
new file mode 100644
index 0000000..d5f5cce
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/tps65217-pwrbutton.txt
@@ -0,0 +1,17 @@
+Texas Instruments TPS65217 power button
+
+This module is part of the TPS65217. For more details about the whole
+chip see Documentation/devicetree/bindings/regulator/tps65217.txt.
+
+This module provides a simple power button event via an Interrupt.
+
+Required properties:
+- compatible: should be "ti,tps65217-pwrbutton"
+
+Example:
+
+&tps {
+	tps65217-pwrbutton {
+		compatible = "ti,tps65217-pwrbutton";
+	};
+};
diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig
index 1f2337a..2649400 100644
--- a/drivers/input/misc/Kconfig
+++ b/drivers/input/misc/Kconfig
@@ -438,6 +438,16 @@ config INPUT_RETU_PWRBUTTON
 	  To compile this driver as a module, choose M here. The module will
 	  be called retu-pwrbutton.
 
+config INPUT_TPS65217_PWRBUTTON
+	tristate "TPS65217 Power button driver"
+	depends on MFD_TPS65217
+	help
+	  Say Y here if you want to enable power button reporting for
+	  the TPS65217 Power Management IC device.
+
+	  To compile this driver as a module, choose M here. The module will
+	  be called tps65217-pwrbutton.
+
 config INPUT_TPS65218_PWRBUTTON
 	tristate "TPS65218 Power button driver"
 	depends on MFD_TPS65218
diff --git a/drivers/input/misc/Makefile b/drivers/input/misc/Makefile
index 0357a08..651cafc 100644
--- a/drivers/input/misc/Makefile
+++ b/drivers/input/misc/Makefile
@@ -65,6 +65,7 @@ obj-$(CONFIG_INPUT_SGI_BTNS)		+= sgi_btns.o
 obj-$(CONFIG_INPUT_SIRFSOC_ONKEY)	+= sirfsoc-onkey.o
 obj-$(CONFIG_INPUT_SOC_BUTTON_ARRAY)	+= soc_button_array.o
 obj-$(CONFIG_INPUT_SPARCSPKR)		+= sparcspkr.o
+obj-$(CONFIG_INPUT_TPS65217_PWRBUTTON)	+= tps65217-pwrbutton.o
 obj-$(CONFIG_INPUT_TPS65218_PWRBUTTON)	+= tps65218-pwrbutton.o
 obj-$(CONFIG_INPUT_TWL4030_PWRBUTTON)	+= twl4030-pwrbutton.o
 obj-$(CONFIG_INPUT_TWL4030_VIBRA)	+= twl4030-vibra.o
diff --git a/drivers/input/misc/tps65217-pwrbutton.c b/drivers/input/misc/tps65217-pwrbutton.c
new file mode 100644
index 0000000..50372bf
--- /dev/null
+++ b/drivers/input/misc/tps65217-pwrbutton.c
@@ -0,0 +1,131 @@
+/*
+ * Texas Instruments' TPS65217 Power Button Input Driver
+ *
+ * Copyright (C) 2016 Grinn - http://www.grinn-global.com/
+ * Author: Marcin Niestroj <m.niestroj@grinn-global.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include <linux/init.h>
+#include <linux/input.h>
+#include <linux/interrupt.h>
+#include <linux/kernel.h>
+#include <linux/mfd/tps65217.h>
+#include <linux/module.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
+#include <linux/slab.h>
+
+struct tps65217_pwrbutton {
+	struct device *dev;
+	struct tps65217 *tps;
+	struct input_dev *idev;
+};
+
+static irqreturn_t tps65217_pb_irq(int irq, void *data)
+{
+	struct tps65217_pwrbutton *pwr = data;
+	unsigned int reg;
+	int error;
+
+	error = tps65217_reg_read(pwr->tps, TPS65217_REG_STATUS, &reg);
+	if (error) {
+		dev_err(pwr->dev, "can't read register: %d\n", error);
+		goto out;
+	}
+
+	if (reg & TPS65217_STATUS_PB) {
+		input_report_key(pwr->idev, KEY_POWER, 1);
+		pm_wakeup_event(pwr->dev, 0);
+	} else {
+		input_report_key(pwr->idev, KEY_POWER, 0);
+	}
+
+	input_sync(pwr->idev);
+
+out:
+	return IRQ_HANDLED;
+}
+
+static int tps65217_pb_probe(struct platform_device *pdev)
+{
+	struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent);
+	struct device *dev = &pdev->dev;
+	struct tps65217_pwrbutton *pwr;
+	struct input_dev *idev;
+	int error;
+	int irq;
+
+	pwr = devm_kzalloc(dev, sizeof(*pwr), GFP_KERNEL);
+	if (!pwr)
+		return -ENOMEM;
+
+	idev = devm_input_allocate_device(dev);
+	if (!idev)
+		return -ENOMEM;
+
+	idev->name = "tps65217_pwrbutton";
+	idev->phys = "tps65217_pwrbutton/input0";
+	idev->dev.parent = dev;
+	idev->id.bustype = BUS_I2C;
+
+	input_set_capability(idev, EV_KEY, KEY_POWER);
+
+	pwr->tps = tps;
+	pwr->dev = dev;
+	pwr->idev = idev;
+	platform_set_drvdata(pdev, pwr);
+	device_init_wakeup(dev, true);
+
+	irq = platform_get_irq_byname(pdev, "PB");
+	if (irq < 0) {
+		dev_err(dev, "No IRQ resource!\n");
+		return -EINVAL;
+	}
+
+	error = devm_request_threaded_irq(dev, irq, NULL, tps65217_pb_irq,
+					IRQF_TRIGGER_RISING |
+					IRQF_TRIGGER_FALLING |
+					IRQF_ONESHOT,
+					"tps65217-pwrbutton", pwr);
+	if (error) {
+		dev_err(dev, "failed to request IRQ #%d: %d\n",
+			irq, error);
+		return error;
+	}
+
+	error = input_register_device(idev);
+	if (error) {
+		dev_err(dev, "Can't register power button: %d\n", error);
+		return error;
+	}
+
+	return 0;
+}
+
+static const struct of_device_id tps65217_pb_match[] = {
+	{ .compatible = "ti,tps65217-pwrbutton" },
+	{ },
+};
+MODULE_DEVICE_TABLE(of, tps65217_pb_match);
+
+static struct platform_driver tps65217_pb_driver = {
+	.probe	= tps65217_pb_probe,
+	.driver	= {
+		.name	= "tps65217-pwrbutton",
+		.of_match_table = tps65217_pb_match,
+	},
+};
+module_platform_driver(tps65217_pb_driver);
+
+MODULE_DESCRIPTION("TPS65217 Power Button");
+MODULE_LICENSE("GPL v2");
+MODULE_AUTHOR("Marcin Niestroj <m.niestroj@grinn-global.com>");
-- 
2.9.0


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 2/5] power_supply: tps65217-charger: Fix NULL deref during property export
  2016-06-20 10:50 ` [PATCH v4 2/5] power_supply: tps65217-charger: Fix NULL deref during property export Marcin Niestroj
@ 2016-06-20 13:23   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 27+ messages in thread
From: Krzysztof Kozlowski @ 2016-06-20 13:23 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Lee Jones, Tony Lindgren, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse, Rob Herring,
	Pawel Moll, linux-omap, linux-pm, linux-input, devicetree,
	Grygorii Strashko

On Mon, Jun 20, 2016 at 12:50 PM, Marcin Niestroj
<m.niestroj@grinn-global.com> wrote:
> This bug leads to:
>
> [    1.906411] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
> [    1.914878] pgd = c0004000
> [    1.917786] [0000000c] *pgd=00000000
> [    1.921536] Internal error: Oops: 5 [#1] SMP ARM
> [    1.926357] Modules linked in:
> [    1.929556] CPU: 0 PID: 14 Comm: kworker/0:1 Not tainted 4.4.5 #18
> [    1.936006] Hardware name: Generic AM33XX (Flattened Device Tree)
> [    1.942383] Workqueue: events power_supply_changed_work
> [    1.947842] task: de2c41c0 ti: de2c8000 task.ti: de2c8000
> [    1.953483] PC is at tps65217_ac_get_property+0x14/0x28
> [    1.958937] LR is at tps65217_ac_get_property+0x10/0x28
>
> Driver was trying to use drv_data in property get handler. However drv_data
> was not set, so it caused NULL pointer dereference. This patch properly
> sets drv_data during probe by power_supply_config parameter, so the
> property get handler works as desired.
>
> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> ---
> Changes v1 -> v4: none

This should crash on first try (get_property() is called just after
power supply register)... I wonder how was it working before...
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Fixes: 3636859b280c ("power_supply: Add support for tps65217-charger.")
Cc: <stable@vger.kernel.org>

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 5/5] Input: Add tps65217 power button driver
  2016-06-20 10:50 ` [PATCH v4 5/5] Input: Add tps65217 power button driver Marcin Niestroj
@ 2016-06-21 13:17   ` Rob Herring
  2016-08-22 10:09     ` Marcin Niestroj
  2016-08-29  9:09     ` Marcin Niestroj
  0 siblings, 2 replies; 27+ messages in thread
From: Rob Herring @ 2016-06-21 13:17 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Lee Jones, Tony Lindgren, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse, Pawel Moll, linux-omap,
	linux-pm, linux-input, devicetree, Grygorii Strashko

On Mon, Jun 20, 2016 at 12:50:56PM +0200, Marcin Niestroj wrote:
> This driver enables us to use tps65217's power button as KEY_POWER on
> am335x boards (directly connected button in chiliboard, accessible pin
> via expansion header in beaglebone). This patch has been tested with
> chiliboard.
> 
> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> ---
> Depends on patches 1-4 in series
> 
> Changes v2 -> v4: none
> 
> Changes v1 -> v2:
>  * Added information about parent device in tps65217 power button
>    device-tree binding documentation (suggested by Rob)
> 
>  .../bindings/input/tps65217-pwrbutton.txt          |  17 +++

Acked-by: Rob Herring <robh@kernel.org>

>  drivers/input/misc/Kconfig                         |  10 ++
>  drivers/input/misc/Makefile                        |   1 +
>  drivers/input/misc/tps65217-pwrbutton.c            | 131 +++++++++++++++++++++
>  4 files changed, 159 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/input/tps65217-pwrbutton.txt
>  create mode 100644 drivers/input/misc/tps65217-pwrbutton.c

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 1/5] mfd: tps65217: Add support for IRQs
  2016-06-20 10:50 ` [PATCH v4 1/5] mfd: tps65217: Add support for IRQs Marcin Niestroj
@ 2016-06-24  9:58   ` Grygorii Strashko
       [not found]     ` <576D0437.1020800-l0cyMroinI0@public.gmane.org>
  2016-08-29  9:05     ` Marcin Niestroj
  0 siblings, 2 replies; 27+ messages in thread
From: Grygorii Strashko @ 2016-06-24  9:58 UTC (permalink / raw)
  To: Marcin Niestroj, Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree

On 06/20/2016 01:50 PM, Marcin Niestroj wrote:
> Add support for handling IRQs: power button, AC and USB power state
> changes. Mask and interrupt bits are shared within one register, which
> prevents us to use regmap_irq implementation. New irq_domain is created in
> order to add interrupt handling for each tps65217's subsystem. IRQ
> resources have been added for charger subsystem to be able to notify about
> AC and USB state changes.
>
> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> Acked-by: Lee Jones <lee.jones@linaro.org>
> ---
> Changes v3 -> v4 (suggested by Grygorii):
>   * Add irq_set_parent() during irq init
>   * Remove hardcoded IRQ trigger type, rely on DT bindings instead
>
> Changes v2 -> v3 (suggested by Lee):
>   * Alphabetical reorder of includes
>   * Rename enum tps65217_irqs -> tps65217_irq_type, so we won't confuse
>     it with structure object with the same name.
>   * Fix inconsistent order of irq_enable and irq_disable
>   * Remove redundant 'else' when returning from tps65217_irq_thread
>
> Changes v1 -> v2: none
>
>   drivers/mfd/Kconfig          |   1 +
>   drivers/mfd/tps65217.c       | 195 +++++++++++++++++++++++++++++++++++++++++--
>   include/linux/mfd/tps65217.h |  12 +++
>   3 files changed, 200 insertions(+), 8 deletions(-)
>

Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>



-- 
regards,
-grygorii

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 3/5] power_supply: tps65217-charger: Add support for IRQs
  2016-06-20 10:50 ` [PATCH v4 3/5] power_supply: tps65217-charger: Add support for IRQs Marcin Niestroj
@ 2016-07-27  9:14   ` Marcin Niestroj
  2016-07-27 20:04     ` Sebastian Reichel
       [not found]   ` <20160620105056.25843-4-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
  1 sibling, 1 reply; 27+ messages in thread
From: Marcin Niestroj @ 2016-07-27  9:14 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko

ping

On 20.06.2016 12:50, Marcin Niestroj wrote:
> Make use of IRQ resources defined in tps65217 mfd code. If they are valid
> we use them instead separate poll task, in order to define AC power state.
>
> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> ---
> Depends on patch 1 and 2 in series
>
> Changes v1 -> v4: none
>
>  drivers/power/tps65217_charger.c | 40 +++++++++++++++++++++++++++++++++-------
>  1 file changed, 33 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/power/tps65217_charger.c b/drivers/power/tps65217_charger.c
> index 73dfae4..c8c4a0c 100644
> --- a/drivers/power/tps65217_charger.c
> +++ b/drivers/power/tps65217_charger.c
> @@ -46,6 +46,8 @@ struct tps65217_charger {
>  	int	prev_ac_online;
>
>  	struct task_struct	*poll_task;
> +
> +	int	irq;
>  };
>
>  static enum power_supply_property tps65217_ac_props[] = {
> @@ -198,6 +200,7 @@ static int tps65217_charger_probe(struct platform_device *pdev)
>  	struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent);
>  	struct tps65217_charger *charger;
>  	struct power_supply_config cfg = {};
> +	int irq;
>  	int ret;
>
>  	dev_dbg(&pdev->dev, "%s\n", __func__);
> @@ -220,18 +223,40 @@ static int tps65217_charger_probe(struct platform_device *pdev)
>  		return PTR_ERR(charger->ac);
>  	}
>
> +	irq = platform_get_irq_byname(pdev, "AC");
> +	if (irq < 0)
> +		irq = -ENXIO;
> +	charger->irq = irq;
> +
>  	ret = tps65217_config_charger(charger);
>  	if (ret < 0) {
>  		dev_err(charger->dev, "charger config failed, err %d\n", ret);
>  		return ret;
>  	}
>
> -	charger->poll_task = kthread_run(tps65217_charger_poll_task,
> -				      charger, "ktps65217charger");
> -	if (IS_ERR(charger->poll_task)) {
> -		ret = PTR_ERR(charger->poll_task);
> -		dev_err(charger->dev, "Unable to run kthread err %d\n", ret);
> -		return ret;
> +	if (irq != -ENXIO) {
> +		ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
> +						tps65217_charger_irq,
> +						0, "tps65217-charger",
> +						charger);
> +		if (ret) {
> +			dev_err(charger->dev,
> +				"Unable to register irq %d err %d\n", irq,
> +				ret);
> +			return ret;
> +		}
> +
> +		/* Check current state */
> +		tps65217_charger_irq(irq, charger);
> +	} else {
> +		charger->poll_task = kthread_run(tps65217_charger_poll_task,
> +						charger, "ktps65217charger");
> +		if (IS_ERR(charger->poll_task)) {
> +			ret = PTR_ERR(charger->poll_task);
> +			dev_err(charger->dev,
> +				"Unable to run kthread err %d\n", ret);
> +			return ret;
> +		}
>  	}
>
>  	return 0;
> @@ -241,7 +266,8 @@ static int tps65217_charger_remove(struct platform_device *pdev)
>  {
>  	struct tps65217_charger *charger = platform_get_drvdata(pdev);
>
> -	kthread_stop(charger->poll_task);
> +	if (charger->irq == -ENXIO)
> +		kthread_stop(charger->poll_task);
>
>  	return 0;
>  }
>

-- 
Marcin Niestroj

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 3/5] power_supply: tps65217-charger: Add support for IRQs
  2016-07-27  9:14   ` Marcin Niestroj
@ 2016-07-27 20:04     ` Sebastian Reichel
  0 siblings, 0 replies; 27+ messages in thread
From: Sebastian Reichel @ 2016-07-27 20:04 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Lee Jones, Tony Lindgren, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

Hi,

On Wed, Jul 27, 2016 at 11:14:27AM +0200, Marcin Niestroj wrote:
> ping

I missed this one. We are currently in the merge window. I will have
a look after 4.8-rc1 has been released.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 3/5] power_supply: tps65217-charger: Add support for IRQs
       [not found]   ` <20160620105056.25843-4-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
@ 2016-08-15 19:26     ` Sebastian Reichel
  0 siblings, 0 replies; 27+ messages in thread
From: Sebastian Reichel @ 2016-08-15 19:26 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Lee Jones, Tony Lindgren, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Grygorii Strashko

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

Hi,

On Mon, Jun 20, 2016 at 12:50:54PM +0200, Marcin Niestroj wrote:
> Make use of IRQ resources defined in tps65217 mfd code. If they are valid
> we use them instead separate poll task, in order to define AC power state.

Thanks, queued into power-supply's -next branch.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 1/5] mfd: tps65217: Add support for IRQs
       [not found]     ` <576D0437.1020800-l0cyMroinI0@public.gmane.org>
@ 2016-08-22 10:02       ` Marcin Niestroj
  0 siblings, 0 replies; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-22 10:02 UTC (permalink / raw)
  To: Lee Jones
  Cc: Grygorii Strashko, Tony Lindgren, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse, Rob Herring,
	Pawel Moll, linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA

ping

On 24.06.2016 11:58, Grygorii Strashko wrote:
> On 06/20/2016 01:50 PM, Marcin Niestroj wrote:
>> Add support for handling IRQs: power button, AC and USB power state
>> changes. Mask and interrupt bits are shared within one register, which
>> prevents us to use regmap_irq implementation. New irq_domain is
>> created in
>> order to add interrupt handling for each tps65217's subsystem. IRQ
>> resources have been added for charger subsystem to be able to notify
>> about
>> AC and USB state changes.
>>
>> Signed-off-by: Marcin Niestroj <m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
>> Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>> ---
>> Changes v3 -> v4 (suggested by Grygorii):
>>   * Add irq_set_parent() during irq init
>>   * Remove hardcoded IRQ trigger type, rely on DT bindings instead
>>
>> Changes v2 -> v3 (suggested by Lee):
>>   * Alphabetical reorder of includes
>>   * Rename enum tps65217_irqs -> tps65217_irq_type, so we won't confuse
>>     it with structure object with the same name.
>>   * Fix inconsistent order of irq_enable and irq_disable
>>   * Remove redundant 'else' when returning from tps65217_irq_thread
>>
>> Changes v1 -> v2: none
>>
>>   drivers/mfd/Kconfig          |   1 +
>>   drivers/mfd/tps65217.c       | 195
>> +++++++++++++++++++++++++++++++++++++++++--
>>   include/linux/mfd/tps65217.h |  12 +++
>>   3 files changed, 200 insertions(+), 8 deletions(-)
>>
>
> Reviewed-by: Grygorii Strashko <grygorii.strashko-l0cyMroinI0@public.gmane.org>
>
>
>

-- 
Marcin Niestroj
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
       [not found]   ` <20160620105056.25843-5-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
@ 2016-08-22 10:08     ` Marcin Niestroj
  0 siblings, 0 replies; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-22 10:08 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Grygorii Strashko

ping

On 20.06.2016 12:50, Marcin Niestroj wrote:
> Add tps65217 power buttor subdevice with assigned IRQ resources.
>
> Signed-off-by: Marcin Niestroj <m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
> Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> Depends on patch 1 in series
>
> Changes v1 -> v4: none
>
>  drivers/mfd/tps65217.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
> index 41b5d59..57c8741 100644
> --- a/drivers/mfd/tps65217.c
> +++ b/drivers/mfd/tps65217.c
> @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
>  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
>  };
>
> +static struct resource pb_resources[] = {
> +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
> +};
> +
>  struct tps65217_irq {
>  	int mask;
>  	int interrupt;
> @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
>  		.resources = charger_resources,
>  		.of_compatible = "ti,tps65217-charger",
>  	},
> +	{
> +		.name = "tps65217-pwrbutton",
> +		.num_resources = ARRAY_SIZE(pb_resources),
> +		.resources = pb_resources,
> +		.of_compatible = "ti,tps65217-pwrbutton",
> +	},
>  };
>
>  static irqreturn_t tps65217_irq_thread(int irq, void *data)
>

-- 
Marcin Niestroj
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 5/5] Input: Add tps65217 power button driver
  2016-06-21 13:17   ` Rob Herring
@ 2016-08-22 10:09     ` Marcin Niestroj
  2016-08-29  9:09     ` Marcin Niestroj
  1 sibling, 0 replies; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-22 10:09 UTC (permalink / raw)
  To: Lee Jones
  Cc: Rob Herring, Tony Lindgren, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse, Pawel Moll, linux-omap,
	linux-pm, linux-input, devicetree, Grygorii Strashko

ping

On 21.06.2016 15:17, Rob Herring wrote:
> On Mon, Jun 20, 2016 at 12:50:56PM +0200, Marcin Niestroj wrote:
>> This driver enables us to use tps65217's power button as KEY_POWER on
>> am335x boards (directly connected button in chiliboard, accessible pin
>> via expansion header in beaglebone). This patch has been tested with
>> chiliboard.
>>
>> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
>> ---
>> Depends on patches 1-4 in series
>>
>> Changes v2 -> v4: none
>>
>> Changes v1 -> v2:
>>  * Added information about parent device in tps65217 power button
>>    device-tree binding documentation (suggested by Rob)
>>
>>  .../bindings/input/tps65217-pwrbutton.txt          |  17 +++
>
> Acked-by: Rob Herring <robh@kernel.org>
>
>>  drivers/input/misc/Kconfig                         |  10 ++
>>  drivers/input/misc/Makefile                        |   1 +
>>  drivers/input/misc/tps65217-pwrbutton.c            | 131 +++++++++++++++++++++
>>  4 files changed, 159 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/input/tps65217-pwrbutton.txt
>>  create mode 100644 drivers/input/misc/tps65217-pwrbutton.c
>

-- 
Marcin Niestroj

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 1/5] mfd: tps65217: Add support for IRQs
  2016-06-24  9:58   ` Grygorii Strashko
       [not found]     ` <576D0437.1020800-l0cyMroinI0@public.gmane.org>
@ 2016-08-29  9:05     ` Marcin Niestroj
  2016-08-30  9:04       ` Lee Jones
  1 sibling, 1 reply; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-29  9:05 UTC (permalink / raw)
  To: Lee Jones
  Cc: Grygorii Strashko, Tony Lindgren, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse, Rob Herring,
	Pawel Moll, linux-omap, linux-pm, linux-input, devicetree

ping

On 24.06.2016 11:58, Grygorii Strashko wrote:
> On 06/20/2016 01:50 PM, Marcin Niestroj wrote:
>> Add support for handling IRQs: power button, AC and USB power state
>> changes. Mask and interrupt bits are shared within one register, which
>> prevents us to use regmap_irq implementation. New irq_domain is
>> created in
>> order to add interrupt handling for each tps65217's subsystem. IRQ
>> resources have been added for charger subsystem to be able to notify
>> about
>> AC and USB state changes.
>>
>> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
>> Acked-by: Lee Jones <lee.jones@linaro.org>
>> ---
>> Changes v3 -> v4 (suggested by Grygorii):
>>   * Add irq_set_parent() during irq init
>>   * Remove hardcoded IRQ trigger type, rely on DT bindings instead
>>
>> Changes v2 -> v3 (suggested by Lee):
>>   * Alphabetical reorder of includes
>>   * Rename enum tps65217_irqs -> tps65217_irq_type, so we won't confuse
>>     it with structure object with the same name.
>>   * Fix inconsistent order of irq_enable and irq_disable
>>   * Remove redundant 'else' when returning from tps65217_irq_thread
>>
>> Changes v1 -> v2: none
>>
>>   drivers/mfd/Kconfig          |   1 +
>>   drivers/mfd/tps65217.c       | 195
>> +++++++++++++++++++++++++++++++++++++++++--
>>   include/linux/mfd/tps65217.h |  12 +++
>>   3 files changed, 200 insertions(+), 8 deletions(-)
>>
>
> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
>
>
>

-- 
Marcin Niestroj

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
  2016-06-20 10:50 ` [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice Marcin Niestroj
       [not found]   ` <20160620105056.25843-5-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
@ 2016-08-29  9:08   ` Marcin Niestroj
  2016-08-30  9:03     ` Lee Jones
  1 sibling, 1 reply; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-29  9:08 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko

ping

On 20.06.2016 12:50, Marcin Niestroj wrote:
> Add tps65217 power buttor subdevice with assigned IRQ resources.
>
> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> Acked-by: Lee Jones <lee.jones@linaro.org>
> ---
> Depends on patch 1 in series
>
> Changes v1 -> v4: none
>
>  drivers/mfd/tps65217.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
> index 41b5d59..57c8741 100644
> --- a/drivers/mfd/tps65217.c
> +++ b/drivers/mfd/tps65217.c
> @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
>  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
>  };
>
> +static struct resource pb_resources[] = {
> +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
> +};
> +
>  struct tps65217_irq {
>  	int mask;
>  	int interrupt;
> @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
>  		.resources = charger_resources,
>  		.of_compatible = "ti,tps65217-charger",
>  	},
> +	{
> +		.name = "tps65217-pwrbutton",
> +		.num_resources = ARRAY_SIZE(pb_resources),
> +		.resources = pb_resources,
> +		.of_compatible = "ti,tps65217-pwrbutton",
> +	},
>  };
>
>  static irqreturn_t tps65217_irq_thread(int irq, void *data)
>

-- 
Marcin Niestroj

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 5/5] Input: Add tps65217 power button driver
  2016-06-21 13:17   ` Rob Herring
  2016-08-22 10:09     ` Marcin Niestroj
@ 2016-08-29  9:09     ` Marcin Niestroj
  1 sibling, 0 replies; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-29  9:09 UTC (permalink / raw)
  To: Lee Jones
  Cc: Rob Herring, Tony Lindgren, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse, Pawel Moll,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Grygorii Strashko

ping

On 21.06.2016 15:17, Rob Herring wrote:
> On Mon, Jun 20, 2016 at 12:50:56PM +0200, Marcin Niestroj wrote:
>> This driver enables us to use tps65217's power button as KEY_POWER on
>> am335x boards (directly connected button in chiliboard, accessible pin
>> via expansion header in beaglebone). This patch has been tested with
>> chiliboard.
>>
>> Signed-off-by: Marcin Niestroj <m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
>> ---
>> Depends on patches 1-4 in series
>>
>> Changes v2 -> v4: none
>>
>> Changes v1 -> v2:
>>  * Added information about parent device in tps65217 power button
>>    device-tree binding documentation (suggested by Rob)
>>
>>  .../bindings/input/tps65217-pwrbutton.txt          |  17 +++
>
> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
>
>>  drivers/input/misc/Kconfig                         |  10 ++
>>  drivers/input/misc/Makefile                        |   1 +
>>  drivers/input/misc/tps65217-pwrbutton.c            | 131 +++++++++++++++++++++
>>  4 files changed, 159 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/input/tps65217-pwrbutton.txt
>>  create mode 100644 drivers/input/misc/tps65217-pwrbutton.c
>

-- 
Marcin Niestroj
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
  2016-08-29  9:08   ` Marcin Niestroj
@ 2016-08-30  9:03     ` Lee Jones
  2016-08-30  9:19       ` Marcin Niestroj
  0 siblings, 1 reply; 27+ messages in thread
From: Lee Jones @ 2016-08-30  9:03 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko

On Mon, 29 Aug 2016, Marcin Niestroj wrote:

> ping

Don't do that!

If you think the patch hasn't attracted attention in >2 weeks, then
it's probably slipped through the gaps and you need to send a
[RESEND].

However ...

> On 20.06.2016 12:50, Marcin Niestroj wrote:
> > Add tps65217 power buttor subdevice with assigned IRQ resources.
> > 
> > Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> > Acked-by: Lee Jones <lee.jones@linaro.org>

This patch has a maintainer Ack, so why are you pinging?

> > ---
> > Depends on patch 1 in series
> > 
> > Changes v1 -> v4: none
> > 
> >  drivers/mfd/tps65217.c | 10 ++++++++++
> >  1 file changed, 10 insertions(+)
> > 
> > diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
> > index 41b5d59..57c8741 100644
> > --- a/drivers/mfd/tps65217.c
> > +++ b/drivers/mfd/tps65217.c
> > @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
> >  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
> >  };
> > 
> > +static struct resource pb_resources[] = {
> > +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
> > +};
> > +
> >  struct tps65217_irq {
> >  	int mask;
> >  	int interrupt;
> > @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
> >  		.resources = charger_resources,
> >  		.of_compatible = "ti,tps65217-charger",
> >  	},
> > +	{
> > +		.name = "tps65217-pwrbutton",
> > +		.num_resources = ARRAY_SIZE(pb_resources),
> > +		.resources = pb_resources,
> > +		.of_compatible = "ti,tps65217-pwrbutton",
> > +	},
> >  };
> > 
> >  static irqreturn_t tps65217_irq_thread(int irq, void *data)
> > 
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 1/5] mfd: tps65217: Add support for IRQs
  2016-08-29  9:05     ` Marcin Niestroj
@ 2016-08-30  9:04       ` Lee Jones
  0 siblings, 0 replies; 27+ messages in thread
From: Lee Jones @ 2016-08-30  9:04 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Grygorii Strashko, Tony Lindgren, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse, Rob Herring,
	Pawel Moll, linux-omap, linux-pm, linux-input, devicetree

On Mon, 29 Aug 2016, Marcin Niestroj wrote:

> ping

Again, 2 pings on a patch which has a Maintainer Ack.  Why?

If you're still missing Acks on some patches in the set, resend the set!

> On 24.06.2016 11:58, Grygorii Strashko wrote:
> > On 06/20/2016 01:50 PM, Marcin Niestroj wrote:
> > > Add support for handling IRQs: power button, AC and USB power state
> > > changes. Mask and interrupt bits are shared within one register, which
> > > prevents us to use regmap_irq implementation. New irq_domain is
> > > created in
> > > order to add interrupt handling for each tps65217's subsystem. IRQ
> > > resources have been added for charger subsystem to be able to notify
> > > about
> > > AC and USB state changes.
> > > 
> > > Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> > > Acked-by: Lee Jones <lee.jones@linaro.org>
> > > ---
> > > Changes v3 -> v4 (suggested by Grygorii):
> > >   * Add irq_set_parent() during irq init
> > >   * Remove hardcoded IRQ trigger type, rely on DT bindings instead
> > > 
> > > Changes v2 -> v3 (suggested by Lee):
> > >   * Alphabetical reorder of includes
> > >   * Rename enum tps65217_irqs -> tps65217_irq_type, so we won't confuse
> > >     it with structure object with the same name.
> > >   * Fix inconsistent order of irq_enable and irq_disable
> > >   * Remove redundant 'else' when returning from tps65217_irq_thread
> > > 
> > > Changes v1 -> v2: none
> > > 
> > >   drivers/mfd/Kconfig          |   1 +
> > >   drivers/mfd/tps65217.c       | 195
> > > +++++++++++++++++++++++++++++++++++++++++--
> > >   include/linux/mfd/tps65217.h |  12 +++
> > >   3 files changed, 200 insertions(+), 8 deletions(-)
> > > 
> > 
> > Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
> > 
> > 
> > 
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
  2016-08-30  9:03     ` Lee Jones
@ 2016-08-30  9:19       ` Marcin Niestroj
       [not found]         ` <9fafa9b0-cc45-6fe9-ddb9-5c933064261c-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
  0 siblings, 1 reply; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-30  9:19 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Grygorii Strashko

On 30.08.2016 11:03, Lee Jones wrote:
> On Mon, 29 Aug 2016, Marcin Niestroj wrote:
>
>> ping
>
> Don't do that!
>
> If you think the patch hasn't attracted attention in >2 weeks, then
> it's probably slipped through the gaps and you need to send a
> [RESEND].

Clear.

>
> However ...
>
>> On 20.06.2016 12:50, Marcin Niestroj wrote:
>>> Add tps65217 power buttor subdevice with assigned IRQ resources.
>>>
>>> Signed-off-by: Marcin Niestroj <m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
>>> Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> This patch has a maintainer Ack, so why are you pinging?

Because I didn't see it applied anywhere and there were no new
comments, so I thought it slipped somewhere.

So my question is: what happens with the patch after maintainer Ack?
Are we still waiting for some comments from the community? Do I still
need to worry, that the patch might slipped? What is author's role now?

>
>>> ---
>>> Depends on patch 1 in series
>>>
>>> Changes v1 -> v4: none
>>>
>>>  drivers/mfd/tps65217.c | 10 ++++++++++
>>>  1 file changed, 10 insertions(+)
>>>
>>> diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
>>> index 41b5d59..57c8741 100644
>>> --- a/drivers/mfd/tps65217.c
>>> +++ b/drivers/mfd/tps65217.c
>>> @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
>>>  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
>>>  };
>>>
>>> +static struct resource pb_resources[] = {
>>> +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
>>> +};
>>> +
>>>  struct tps65217_irq {
>>>  	int mask;
>>>  	int interrupt;
>>> @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
>>>  		.resources = charger_resources,
>>>  		.of_compatible = "ti,tps65217-charger",
>>>  	},
>>> +	{
>>> +		.name = "tps65217-pwrbutton",
>>> +		.num_resources = ARRAY_SIZE(pb_resources),
>>> +		.resources = pb_resources,
>>> +		.of_compatible = "ti,tps65217-pwrbutton",
>>> +	},
>>>  };
>>>
>>>  static irqreturn_t tps65217_irq_thread(int irq, void *data)
>>>
>>
>

-- 
Marcin Niestroj
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
       [not found]         ` <9fafa9b0-cc45-6fe9-ddb9-5c933064261c-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
@ 2016-08-30  9:50           ` Lee Jones
  2016-08-31  7:41             ` Marcin Niestroj
  0 siblings, 1 reply; 27+ messages in thread
From: Lee Jones @ 2016-08-30  9:50 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Grygorii Strashko

On Tue, 30 Aug 2016, Marcin Niestroj wrote:

> On 30.08.2016 11:03, Lee Jones wrote:
> > On Mon, 29 Aug 2016, Marcin Niestroj wrote:
> > 
> > > ping
> > 
> > Don't do that!
> > 
> > If you think the patch hasn't attracted attention in >2 weeks, then
> > it's probably slipped through the gaps and you need to send a
> > [RESEND].
> 
> Clear.
> 
> > 
> > However ...
> > 
> > > On 20.06.2016 12:50, Marcin Niestroj wrote:
> > > > Add tps65217 power buttor subdevice with assigned IRQ resources.
> > > > 
> > > > Signed-off-by: Marcin Niestroj <m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
> > > > Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> > 
> > This patch has a maintainer Ack, so why are you pinging?
> 
> Because I didn't see it applied anywhere and there were no new
> comments, so I thought it slipped somewhere.
> 
> So my question is: what happens with the patch after maintainer Ack?
> Are we still waiting for some comments from the community? Do I still
> need to worry, that the patch might slipped? What is author's role now?

Since you sent the patches as a set, it is assumed there are some
dependencies between them, or they are at least in some way related.
To that end, it is normal for Maintainers (especially for me as the
MFD Maintainer, since there often some complex ties into the leaf
driver's changes) to wait until *all* of the patches have either been
accepted or have acquired an Ack of their own to proceed.

I believe we are still waiting on other patches to be reviewed, no?

> > > > ---
> > > > Depends on patch 1 in series
> > > > 
> > > > Changes v1 -> v4: none
> > > > 
> > > >  drivers/mfd/tps65217.c | 10 ++++++++++
> > > >  1 file changed, 10 insertions(+)
> > > > 
> > > > diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
> > > > index 41b5d59..57c8741 100644
> > > > --- a/drivers/mfd/tps65217.c
> > > > +++ b/drivers/mfd/tps65217.c
> > > > @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
> > > >  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
> > > >  };
> > > > 
> > > > +static struct resource pb_resources[] = {
> > > > +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
> > > > +};
> > > > +
> > > >  struct tps65217_irq {
> > > >  	int mask;
> > > >  	int interrupt;
> > > > @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
> > > >  		.resources = charger_resources,
> > > >  		.of_compatible = "ti,tps65217-charger",
> > > >  	},
> > > > +	{
> > > > +		.name = "tps65217-pwrbutton",
> > > > +		.num_resources = ARRAY_SIZE(pb_resources),
> > > > +		.resources = pb_resources,
> > > > +		.of_compatible = "ti,tps65217-pwrbutton",
> > > > +	},
> > > >  };
> > > > 
> > > >  static irqreturn_t tps65217_irq_thread(int irq, void *data)
> > > > 
> > > 
> > 
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
  2016-08-30  9:50           ` Lee Jones
@ 2016-08-31  7:41             ` Marcin Niestroj
  2016-08-31 11:17               ` Lee Jones
  0 siblings, 1 reply; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-31  7:41 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko

On 30.08.2016 11:50, Lee Jones wrote:
> On Tue, 30 Aug 2016, Marcin Niestroj wrote:
>
>> On 30.08.2016 11:03, Lee Jones wrote:
>>> On Mon, 29 Aug 2016, Marcin Niestroj wrote:
>>>
>>>> ping
>>>
>>> Don't do that!
>>>
>>> If you think the patch hasn't attracted attention in >2 weeks, then
>>> it's probably slipped through the gaps and you need to send a
>>> [RESEND].
>>
>> Clear.
>>
>>>
>>> However ...
>>>
>>>> On 20.06.2016 12:50, Marcin Niestroj wrote:
>>>>> Add tps65217 power buttor subdevice with assigned IRQ resources.
>>>>>
>>>>> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
>>>>> Acked-by: Lee Jones <lee.jones@linaro.org>
>>>
>>> This patch has a maintainer Ack, so why are you pinging?
>>
>> Because I didn't see it applied anywhere and there were no new
>> comments, so I thought it slipped somewhere.
>>
>> So my question is: what happens with the patch after maintainer Ack?
>> Are we still waiting for some comments from the community? Do I still
>> need to worry, that the patch might slipped? What is author's role now?
>
> Since you sent the patches as a set, it is assumed there are some
> dependencies between them, or they are at least in some way related.
> To that end, it is normal for Maintainers (especially for me as the
> MFD Maintainer, since there often some complex ties into the leaf
> driver's changes) to wait until *all* of the patches have either been
> accepted or have acquired an Ack of their own to proceed.
>
> I believe we are still waiting on other patches to be reviewed, no?

I've just noticed, that patch 5 was only partially Acked.

I will send a RESEND. However patch 2 is already in mainline. Should I
contain this patch or remove it from the patch set? Additionally
patch 3 has been queued into power-supply's -next branch.

>
>>>>> ---
>>>>> Depends on patch 1 in series
>>>>>
>>>>> Changes v1 -> v4: none
>>>>>
>>>>>  drivers/mfd/tps65217.c | 10 ++++++++++
>>>>>  1 file changed, 10 insertions(+)
>>>>>
>>>>> diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
>>>>> index 41b5d59..57c8741 100644
>>>>> --- a/drivers/mfd/tps65217.c
>>>>> +++ b/drivers/mfd/tps65217.c
>>>>> @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
>>>>>  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
>>>>>  };
>>>>>
>>>>> +static struct resource pb_resources[] = {
>>>>> +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
>>>>> +};
>>>>> +
>>>>>  struct tps65217_irq {
>>>>>  	int mask;
>>>>>  	int interrupt;
>>>>> @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
>>>>>  		.resources = charger_resources,
>>>>>  		.of_compatible = "ti,tps65217-charger",
>>>>>  	},
>>>>> +	{
>>>>> +		.name = "tps65217-pwrbutton",
>>>>> +		.num_resources = ARRAY_SIZE(pb_resources),
>>>>> +		.resources = pb_resources,
>>>>> +		.of_compatible = "ti,tps65217-pwrbutton",
>>>>> +	},
>>>>>  };
>>>>>
>>>>>  static irqreturn_t tps65217_irq_thread(int irq, void *data)
>>>>>
>>>>
>>>
>>
>

-- 
Marcin Niestroj

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
  2016-08-31  7:41             ` Marcin Niestroj
@ 2016-08-31 11:17               ` Lee Jones
  2016-08-31 11:18                 ` Marcin Niestroj
  0 siblings, 1 reply; 27+ messages in thread
From: Lee Jones @ 2016-08-31 11:17 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko

On Wed, 31 Aug 2016, Marcin Niestroj wrote:

> On 30.08.2016 11:50, Lee Jones wrote:
> > On Tue, 30 Aug 2016, Marcin Niestroj wrote:
> > 
> > > On 30.08.2016 11:03, Lee Jones wrote:
> > > > On Mon, 29 Aug 2016, Marcin Niestroj wrote:
> > > > 
> > > > > ping
> > > > 
> > > > Don't do that!
> > > > 
> > > > If you think the patch hasn't attracted attention in >2 weeks, then
> > > > it's probably slipped through the gaps and you need to send a
> > > > [RESEND].
> > > 
> > > Clear.
> > > 
> > > > 
> > > > However ...
> > > > 
> > > > > On 20.06.2016 12:50, Marcin Niestroj wrote:
> > > > > > Add tps65217 power buttor subdevice with assigned IRQ resources.
> > > > > > 
> > > > > > Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> > > > > > Acked-by: Lee Jones <lee.jones@linaro.org>
> > > > 
> > > > This patch has a maintainer Ack, so why are you pinging?
> > > 
> > > Because I didn't see it applied anywhere and there were no new
> > > comments, so I thought it slipped somewhere.
> > > 
> > > So my question is: what happens with the patch after maintainer Ack?
> > > Are we still waiting for some comments from the community? Do I still
> > > need to worry, that the patch might slipped? What is author's role now?
> > 
> > Since you sent the patches as a set, it is assumed there are some
> > dependencies between them, or they are at least in some way related.
> > To that end, it is normal for Maintainers (especially for me as the
> > MFD Maintainer, since there often some complex ties into the leaf
> > driver's changes) to wait until *all* of the patches have either been
> > accepted or have acquired an Ack of their own to proceed.
> > 
> > I believe we are still waiting on other patches to be reviewed, no?
> 
> I've just noticed, that patch 5 was only partially Acked.
> 
> I will send a RESEND. However patch 2 is already in mainline. Should I
> contain this patch or remove it from the patch set? Additionally
> patch 3 has been queued into power-supply's -next branch.

You should rebase the set and drop any patches which have already been
applied.

> > > > > > ---
> > > > > > Depends on patch 1 in series
> > > > > > 
> > > > > > Changes v1 -> v4: none
> > > > > > 
> > > > > >  drivers/mfd/tps65217.c | 10 ++++++++++
> > > > > >  1 file changed, 10 insertions(+)
> > > > > > 
> > > > > > diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
> > > > > > index 41b5d59..57c8741 100644
> > > > > > --- a/drivers/mfd/tps65217.c
> > > > > > +++ b/drivers/mfd/tps65217.c
> > > > > > @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
> > > > > >  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
> > > > > >  };
> > > > > > 
> > > > > > +static struct resource pb_resources[] = {
> > > > > > +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
> > > > > > +};
> > > > > > +
> > > > > >  struct tps65217_irq {
> > > > > >  	int mask;
> > > > > >  	int interrupt;
> > > > > > @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
> > > > > >  		.resources = charger_resources,
> > > > > >  		.of_compatible = "ti,tps65217-charger",
> > > > > >  	},
> > > > > > +	{
> > > > > > +		.name = "tps65217-pwrbutton",
> > > > > > +		.num_resources = ARRAY_SIZE(pb_resources),
> > > > > > +		.resources = pb_resources,
> > > > > > +		.of_compatible = "ti,tps65217-pwrbutton",
> > > > > > +	},
> > > > > >  };
> > > > > > 
> > > > > >  static irqreturn_t tps65217_irq_thread(int irq, void *data)
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
  2016-08-31 11:17               ` Lee Jones
@ 2016-08-31 11:18                 ` Marcin Niestroj
       [not found]                   ` <a1752816-3cee-adb9-79e2-bafce286a5c3-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
  2016-08-31 14:31                   ` Lee Jones
  0 siblings, 2 replies; 27+ messages in thread
From: Marcin Niestroj @ 2016-08-31 11:18 UTC (permalink / raw)
  To: Lee Jones
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Grygorii Strashko

On 31.08.2016 13:17, Lee Jones wrote:
> On Wed, 31 Aug 2016, Marcin Niestroj wrote:
>
>> On 30.08.2016 11:50, Lee Jones wrote:
>>> On Tue, 30 Aug 2016, Marcin Niestroj wrote:
>>>
>>>> On 30.08.2016 11:03, Lee Jones wrote:
>>>>> On Mon, 29 Aug 2016, Marcin Niestroj wrote:
>>>>>
>>>>>> ping
>>>>>
>>>>> Don't do that!
>>>>>
>>>>> If you think the patch hasn't attracted attention in >2 weeks, then
>>>>> it's probably slipped through the gaps and you need to send a
>>>>> [RESEND].
>>>>
>>>> Clear.
>>>>
>>>>>
>>>>> However ...
>>>>>
>>>>>> On 20.06.2016 12:50, Marcin Niestroj wrote:
>>>>>>> Add tps65217 power buttor subdevice with assigned IRQ resources.
>>>>>>>
>>>>>>> Signed-off-by: Marcin Niestroj <m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
>>>>>>> Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>>>>>
>>>>> This patch has a maintainer Ack, so why are you pinging?
>>>>
>>>> Because I didn't see it applied anywhere and there were no new
>>>> comments, so I thought it slipped somewhere.
>>>>
>>>> So my question is: what happens with the patch after maintainer Ack?
>>>> Are we still waiting for some comments from the community? Do I still
>>>> need to worry, that the patch might slipped? What is author's role now?
>>>
>>> Since you sent the patches as a set, it is assumed there are some
>>> dependencies between them, or they are at least in some way related.
>>> To that end, it is normal for Maintainers (especially for me as the
>>> MFD Maintainer, since there often some complex ties into the leaf
>>> driver's changes) to wait until *all* of the patches have either been
>>> accepted or have acquired an Ack of their own to proceed.
>>>
>>> I believe we are still waiting on other patches to be reviewed, no?
>>
>> I've just noticed, that patch 5 was only partially Acked.
>>
>> I will send a RESEND. However patch 2 is already in mainline. Should I
>> contain this patch or remove it from the patch set? Additionally
>> patch 3 has been queued into power-supply's -next branch.
>
> You should rebase the set and drop any patches which have already been
> applied.

So include or drop patch 3?

>
>>>>>>> ---
>>>>>>> Depends on patch 1 in series
>>>>>>>
>>>>>>> Changes v1 -> v4: none
>>>>>>>
>>>>>>>  drivers/mfd/tps65217.c | 10 ++++++++++
>>>>>>>  1 file changed, 10 insertions(+)
>>>>>>>
>>>>>>> diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
>>>>>>> index 41b5d59..57c8741 100644
>>>>>>> --- a/drivers/mfd/tps65217.c
>>>>>>> +++ b/drivers/mfd/tps65217.c
>>>>>>> @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
>>>>>>>  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
>>>>>>>  };
>>>>>>>
>>>>>>> +static struct resource pb_resources[] = {
>>>>>>> +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
>>>>>>> +};
>>>>>>> +
>>>>>>>  struct tps65217_irq {
>>>>>>>  	int mask;
>>>>>>>  	int interrupt;
>>>>>>> @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
>>>>>>>  		.resources = charger_resources,
>>>>>>>  		.of_compatible = "ti,tps65217-charger",
>>>>>>>  	},
>>>>>>> +	{
>>>>>>> +		.name = "tps65217-pwrbutton",
>>>>>>> +		.num_resources = ARRAY_SIZE(pb_resources),
>>>>>>> +		.resources = pb_resources,
>>>>>>> +		.of_compatible = "ti,tps65217-pwrbutton",
>>>>>>> +	},
>>>>>>>  };
>>>>>>>
>>>>>>>  static irqreturn_t tps65217_irq_thread(int irq, void *data)
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

-- 
Marcin Niestroj
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
       [not found]                   ` <a1752816-3cee-adb9-79e2-bafce286a5c3-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
@ 2016-08-31 12:34                     ` Sebastian Reichel
  0 siblings, 0 replies; 27+ messages in thread
From: Sebastian Reichel @ 2016-08-31 12:34 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Lee Jones, Tony Lindgren, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Grygorii Strashko

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

Hi,

On Wed, Aug 31, 2016 at 01:18:31PM +0200, Marcin Niestroj wrote:
> > You should rebase the set and drop any patches which have already been
> > applied.
> 
> So include or drop patch 3?

Drop it and leave a note in the changelog.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice
  2016-08-31 11:18                 ` Marcin Niestroj
       [not found]                   ` <a1752816-3cee-adb9-79e2-bafce286a5c3-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
@ 2016-08-31 14:31                   ` Lee Jones
  1 sibling, 0 replies; 27+ messages in thread
From: Lee Jones @ 2016-08-31 14:31 UTC (permalink / raw)
  To: Marcin Niestroj
  Cc: Tony Lindgren, Sebastian Reichel, Dmitry Eremin-Solenikov,
	David Woodhouse, Rob Herring, Pawel Moll, linux-omap, linux-pm,
	linux-input, devicetree, Grygorii Strashko

On Wed, 31 Aug 2016, Marcin Niestroj wrote:

> On 31.08.2016 13:17, Lee Jones wrote:
> > On Wed, 31 Aug 2016, Marcin Niestroj wrote:
> > 
> > > On 30.08.2016 11:50, Lee Jones wrote:
> > > > On Tue, 30 Aug 2016, Marcin Niestroj wrote:
> > > > 
> > > > > On 30.08.2016 11:03, Lee Jones wrote:
> > > > > > On Mon, 29 Aug 2016, Marcin Niestroj wrote:
> > > > > > 
> > > > > > > ping
> > > > > > 
> > > > > > Don't do that!
> > > > > > 
> > > > > > If you think the patch hasn't attracted attention in >2 weeks, then
> > > > > > it's probably slipped through the gaps and you need to send a
> > > > > > [RESEND].
> > > > > 
> > > > > Clear.
> > > > > 
> > > > > > 
> > > > > > However ...
> > > > > > 
> > > > > > > On 20.06.2016 12:50, Marcin Niestroj wrote:
> > > > > > > > Add tps65217 power buttor subdevice with assigned IRQ resources.
> > > > > > > > 
> > > > > > > > Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> > > > > > > > Acked-by: Lee Jones <lee.jones@linaro.org>
> > > > > > 
> > > > > > This patch has a maintainer Ack, so why are you pinging?
> > > > > 
> > > > > Because I didn't see it applied anywhere and there were no new
> > > > > comments, so I thought it slipped somewhere.
> > > > > 
> > > > > So my question is: what happens with the patch after maintainer Ack?
> > > > > Are we still waiting for some comments from the community? Do I still
> > > > > need to worry, that the patch might slipped? What is author's role now?
> > > > 
> > > > Since you sent the patches as a set, it is assumed there are some
> > > > dependencies between them, or they are at least in some way related.
> > > > To that end, it is normal for Maintainers (especially for me as the
> > > > MFD Maintainer, since there often some complex ties into the leaf
> > > > driver's changes) to wait until *all* of the patches have either been
> > > > accepted or have acquired an Ack of their own to proceed.
> > > > 
> > > > I believe we are still waiting on other patches to be reviewed, no?
> > > 
> > > I've just noticed, that patch 5 was only partially Acked.
> > > 
> > > I will send a RESEND. However patch 2 is already in mainline. Should I
> > > contain this patch or remove it from the patch set? Additionally
> > > patch 3 has been queued into power-supply's -next branch.
> > 
> > You should rebase the set and drop any patches which have already been
> > applied.
> 
> So include or drop patch 3?

You said it's been applied, so drop it.

> > > > > > > > ---
> > > > > > > > Depends on patch 1 in series
> > > > > > > > 
> > > > > > > > Changes v1 -> v4: none
> > > > > > > > 
> > > > > > > >  drivers/mfd/tps65217.c | 10 ++++++++++
> > > > > > > >  1 file changed, 10 insertions(+)
> > > > > > > > 
> > > > > > > > diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
> > > > > > > > index 41b5d59..57c8741 100644
> > > > > > > > --- a/drivers/mfd/tps65217.c
> > > > > > > > +++ b/drivers/mfd/tps65217.c
> > > > > > > > @@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
> > > > > > > >  	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
> > > > > > > >  };
> > > > > > > > 
> > > > > > > > +static struct resource pb_resources[] = {
> > > > > > > > +	DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
> > > > > > > > +};
> > > > > > > > +
> > > > > > > >  struct tps65217_irq {
> > > > > > > >  	int mask;
> > > > > > > >  	int interrupt;
> > > > > > > > @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
> > > > > > > >  		.resources = charger_resources,
> > > > > > > >  		.of_compatible = "ti,tps65217-charger",
> > > > > > > >  	},
> > > > > > > > +	{
> > > > > > > > +		.name = "tps65217-pwrbutton",
> > > > > > > > +		.num_resources = ARRAY_SIZE(pb_resources),
> > > > > > > > +		.resources = pb_resources,
> > > > > > > > +		.of_compatible = "ti,tps65217-pwrbutton",
> > > > > > > > +	},
> > > > > > > >  };
> > > > > > > > 
> > > > > > > >  static irqreturn_t tps65217_irq_thread(int irq, void *data)
> > > > > > > > 
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2016-08-31 14:31 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20 10:50 [PATCH v4 0/5] mfd: tps65217: Add power-button and IRQ support Marcin Niestroj
2016-06-20 10:50 ` [PATCH v4 1/5] mfd: tps65217: Add support for IRQs Marcin Niestroj
2016-06-24  9:58   ` Grygorii Strashko
     [not found]     ` <576D0437.1020800-l0cyMroinI0@public.gmane.org>
2016-08-22 10:02       ` Marcin Niestroj
2016-08-29  9:05     ` Marcin Niestroj
2016-08-30  9:04       ` Lee Jones
2016-06-20 10:50 ` [PATCH v4 2/5] power_supply: tps65217-charger: Fix NULL deref during property export Marcin Niestroj
2016-06-20 13:23   ` Krzysztof Kozlowski
2016-06-20 10:50 ` [PATCH v4 3/5] power_supply: tps65217-charger: Add support for IRQs Marcin Niestroj
2016-07-27  9:14   ` Marcin Niestroj
2016-07-27 20:04     ` Sebastian Reichel
     [not found]   ` <20160620105056.25843-4-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
2016-08-15 19:26     ` Sebastian Reichel
2016-06-20 10:50 ` [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice Marcin Niestroj
     [not found]   ` <20160620105056.25843-5-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
2016-08-22 10:08     ` Marcin Niestroj
2016-08-29  9:08   ` Marcin Niestroj
2016-08-30  9:03     ` Lee Jones
2016-08-30  9:19       ` Marcin Niestroj
     [not found]         ` <9fafa9b0-cc45-6fe9-ddb9-5c933064261c-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
2016-08-30  9:50           ` Lee Jones
2016-08-31  7:41             ` Marcin Niestroj
2016-08-31 11:17               ` Lee Jones
2016-08-31 11:18                 ` Marcin Niestroj
     [not found]                   ` <a1752816-3cee-adb9-79e2-bafce286a5c3-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org>
2016-08-31 12:34                     ` Sebastian Reichel
2016-08-31 14:31                   ` Lee Jones
2016-06-20 10:50 ` [PATCH v4 5/5] Input: Add tps65217 power button driver Marcin Niestroj
2016-06-21 13:17   ` Rob Herring
2016-08-22 10:09     ` Marcin Niestroj
2016-08-29  9:09     ` Marcin Niestroj

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.