linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro
@ 2018-08-30 16:52 Andy Shevchenko
  2018-08-30 16:52 ` [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro Andy Shevchenko
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Andy Shevchenko @ 2018-08-30 16:52 UTC (permalink / raw)
  To: Lee Jones, Hans de Goede, linux-kernel, Mika Westerberg; +Cc: Andy Shevchenko

Instead of open coding each data structure with IRQ resources,
use dedicated macro.

In one case use DEFINE_RES_IRQ_NAMED() and DEFINE_RES_MEM_NAMED().

No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mfd/intel_msic.c | 44 +++++++++-------------------------------
 1 file changed, 10 insertions(+), 34 deletions(-)

diff --git a/drivers/mfd/intel_msic.c b/drivers/mfd/intel_msic.c
index 2017446c5b4b..441de7b3d231 100644
--- a/drivers/mfd/intel_msic.c
+++ b/drivers/mfd/intel_msic.c
@@ -54,68 +54,44 @@ struct intel_msic {
 };
 
 static struct resource msic_touch_resources[] = {
-	{
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(0),
 };
 
 static struct resource msic_adc_resources[] = {
-	{
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(0),
 };
 
 static struct resource msic_battery_resources[] = {
-	{
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(0),
 };
 
 static struct resource msic_gpio_resources[] = {
-	{
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(0),
 };
 
 static struct resource msic_audio_resources[] = {
-	{
-		.name		= "IRQ",
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ_NAMED(0, "IRQ"),
 	/*
 	 * We will pass IRQ_BASE to the driver now but this can be removed
 	 * when/if the driver starts to use intel_msic_irq_read().
 	 */
-	{
-		.name		= "IRQ_BASE",
-		.flags		= IORESOURCE_MEM,
-		.start		= MSIC_IRQ_STATUS_ACCDET,
-		.end		= MSIC_IRQ_STATUS_ACCDET,
-	},
+	DEFINE_RES_MEM_NAMED(MSIC_IRQ_STATUS_ACCDET, 1, "IRQ_BASE"),
 };
 
 static struct resource msic_hdmi_resources[] = {
-	{
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(0),
 };
 
 static struct resource msic_thermal_resources[] = {
-	{
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(0),
 };
 
 static struct resource msic_power_btn_resources[] = {
-	{
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(0),
 };
 
 static struct resource msic_ocd_resources[] = {
-	{
-		.flags		= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ(0),
 };
 
 /*
-- 
2.18.0


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

* [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro
  2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
@ 2018-08-30 16:52 ` Andy Shevchenko
  2018-08-31 12:53   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  2018-08-30 16:52 ` [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro Andy Shevchenko
                   ` (6 subsequent siblings)
  7 siblings, 2 replies; 21+ messages in thread
From: Andy Shevchenko @ 2018-08-30 16:52 UTC (permalink / raw)
  To: Lee Jones, Hans de Goede, linux-kernel, Mika Westerberg; +Cc: Andy Shevchenko

Instead of open coding each data structure with IRQ resources,
use dedicated macro.

No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mfd/intel_soc_pmic_crc.c | 35 +++++---------------------------
 1 file changed, 5 insertions(+), 30 deletions(-)

diff --git a/drivers/mfd/intel_soc_pmic_crc.c b/drivers/mfd/intel_soc_pmic_crc.c
index 6d19a6d0fb97..de3f31266c57 100644
--- a/drivers/mfd/intel_soc_pmic_crc.c
+++ b/drivers/mfd/intel_soc_pmic_crc.c
@@ -36,48 +36,23 @@
 #define CRYSTAL_COVE_IRQ_VHDMIOCP	6
 
 static struct resource gpio_resources[] = {
-	{
-		.name	= "GPIO",
-		.start	= CRYSTAL_COVE_IRQ_GPIO,
-		.end	= CRYSTAL_COVE_IRQ_GPIO,
-		.flags	= IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_GPIO, "GPIO"),
 };
 
 static struct resource pwrsrc_resources[] = {
-	{
-		.name  = "PWRSRC",
-		.start = CRYSTAL_COVE_IRQ_PWRSRC,
-		.end   = CRYSTAL_COVE_IRQ_PWRSRC,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_PWRSRC, "PWRSRC"),
 };
 
 static struct resource adc_resources[] = {
-	{
-		.name  = "ADC",
-		.start = CRYSTAL_COVE_IRQ_ADC,
-		.end   = CRYSTAL_COVE_IRQ_ADC,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_ADC, "ADC"),
 };
 
 static struct resource thermal_resources[] = {
-	{
-		.name  = "THERMAL",
-		.start = CRYSTAL_COVE_IRQ_THRM,
-		.end   = CRYSTAL_COVE_IRQ_THRM,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_THRM, "THERMAL"),
 };
 
 static struct resource bcu_resources[] = {
-	{
-		.name  = "BCU",
-		.start = CRYSTAL_COVE_IRQ_BCU,
-		.end   = CRYSTAL_COVE_IRQ_BCU,
-		.flags = IORESOURCE_IRQ,
-	},
+	DEFINE_RES_IRQ_NAMED(CRYSTAL_COVE_IRQ_BCU, "BCU"),
 };
 
 static struct mfd_cell crystal_cove_byt_dev[] = {
-- 
2.18.0


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

* [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro
  2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
  2018-08-30 16:52 ` [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro Andy Shevchenko
@ 2018-08-30 16:52 ` Andy Shevchenko
  2018-08-31 12:54   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  2018-08-30 16:52 ` [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well Andy Shevchenko
                   ` (5 subsequent siblings)
  7 siblings, 2 replies; 21+ messages in thread
From: Andy Shevchenko @ 2018-08-30 16:52 UTC (permalink / raw)
  To: Lee Jones, Hans de Goede, linux-kernel, Mika Westerberg; +Cc: Andy Shevchenko

Instead of open coding each data structure with regmap IRQresources,
use dedicated macro.

No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mfd/intel_soc_pmic_crc.c | 28 +++++++---------------------
 1 file changed, 7 insertions(+), 21 deletions(-)

diff --git a/drivers/mfd/intel_soc_pmic_crc.c b/drivers/mfd/intel_soc_pmic_crc.c
index de3f31266c57..d33a0cff8cbd 100644
--- a/drivers/mfd/intel_soc_pmic_crc.c
+++ b/drivers/mfd/intel_soc_pmic_crc.c
@@ -109,27 +109,13 @@ static const struct regmap_config crystal_cove_regmap_config = {
 };
 
 static const struct regmap_irq crystal_cove_irqs[] = {
-	[CRYSTAL_COVE_IRQ_PWRSRC] = {
-		.mask = BIT(CRYSTAL_COVE_IRQ_PWRSRC),
-	},
-	[CRYSTAL_COVE_IRQ_THRM] = {
-		.mask = BIT(CRYSTAL_COVE_IRQ_THRM),
-	},
-	[CRYSTAL_COVE_IRQ_BCU] = {
-		.mask = BIT(CRYSTAL_COVE_IRQ_BCU),
-	},
-	[CRYSTAL_COVE_IRQ_ADC] = {
-		.mask = BIT(CRYSTAL_COVE_IRQ_ADC),
-	},
-	[CRYSTAL_COVE_IRQ_CHGR] = {
-		.mask = BIT(CRYSTAL_COVE_IRQ_CHGR),
-	},
-	[CRYSTAL_COVE_IRQ_GPIO] = {
-		.mask = BIT(CRYSTAL_COVE_IRQ_GPIO),
-	},
-	[CRYSTAL_COVE_IRQ_VHDMIOCP] = {
-		.mask = BIT(CRYSTAL_COVE_IRQ_VHDMIOCP),
-	},
+	REGMAP_IRQ_REG(CRYSTAL_COVE_IRQ_PWRSRC, 0, BIT(CRYSTAL_COVE_IRQ_PWRSRC)),
+	REGMAP_IRQ_REG(CRYSTAL_COVE_IRQ_THRM, 0, BIT(CRYSTAL_COVE_IRQ_THRM)),
+	REGMAP_IRQ_REG(CRYSTAL_COVE_IRQ_BCU, 0, BIT(CRYSTAL_COVE_IRQ_BCU)),
+	REGMAP_IRQ_REG(CRYSTAL_COVE_IRQ_ADC, 0, BIT(CRYSTAL_COVE_IRQ_ADC)),
+	REGMAP_IRQ_REG(CRYSTAL_COVE_IRQ_CHGR, 0, BIT(CRYSTAL_COVE_IRQ_CHGR)),
+	REGMAP_IRQ_REG(CRYSTAL_COVE_IRQ_GPIO, 0, BIT(CRYSTAL_COVE_IRQ_GPIO)),
+	REGMAP_IRQ_REG(CRYSTAL_COVE_IRQ_VHDMIOCP, 0, BIT(CRYSTAL_COVE_IRQ_VHDMIOCP)),
 };
 
 static const struct regmap_irq_chip crystal_cove_irq_chip = {
-- 
2.18.0


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

* [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well
  2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
  2018-08-30 16:52 ` [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro Andy Shevchenko
  2018-08-30 16:52 ` [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro Andy Shevchenko
@ 2018-08-30 16:52 ` Andy Shevchenko
  2018-08-31 12:54   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  2018-08-30 16:52 ` [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers Andy Shevchenko
                   ` (4 subsequent siblings)
  7 siblings, 2 replies; 21+ messages in thread
From: Andy Shevchenko @ 2018-08-30 16:52 UTC (permalink / raw)
  To: Lee Jones, Hans de Goede, linux-kernel, Mika Westerberg; +Cc: Andy Shevchenko

Power button IRQ actually has a second level of interrupts to
distinguish between UI and POWER buttons. Moreover, current
implementation looks awkward in approach to handle second level IRQs by
first level related IRQ chip.

To address above issues, split power button IRQ to be chained as well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mfd/intel_soc_pmic_bxtwc.c | 41 ++++++++++++++++++++++--------
 include/linux/mfd/intel_soc_pmic.h |  1 +
 2 files changed, 32 insertions(+), 10 deletions(-)

diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c
index 15bc052704a6..9ca1f8c015de 100644
--- a/drivers/mfd/intel_soc_pmic_bxtwc.c
+++ b/drivers/mfd/intel_soc_pmic_bxtwc.c
@@ -31,8 +31,8 @@
 
 /* Interrupt Status Registers */
 #define BXTWC_IRQLVL1		0x4E02
-#define BXTWC_PWRBTNIRQ		0x4E03
 
+#define BXTWC_PWRBTNIRQ		0x4E03
 #define BXTWC_THRM0IRQ		0x4E04
 #define BXTWC_THRM1IRQ		0x4E05
 #define BXTWC_THRM2IRQ		0x4E06
@@ -47,10 +47,9 @@
 
 /* Interrupt MASK Registers */
 #define BXTWC_MIRQLVL1		0x4E0E
-#define BXTWC_MPWRTNIRQ		0x4E0F
-
 #define BXTWC_MIRQLVL1_MCHGR	BIT(5)
 
+#define BXTWC_MPWRBTNIRQ	0x4E0F
 #define BXTWC_MTHRM0IRQ		0x4E12
 #define BXTWC_MTHRM1IRQ		0x4E13
 #define BXTWC_MTHRM2IRQ		0x4E14
@@ -66,9 +65,7 @@
 /* Whiskey Cove PMIC share same ACPI ID between different platforms */
 #define BROXTON_PMIC_WC_HRV	4
 
-/* Manage in two IRQ chips since mask registers are not consecutive */
 enum bxtwc_irqs {
-	/* Level 1 */
 	BXTWC_PWRBTN_LVL1_IRQ = 0,
 	BXTWC_TMU_LVL1_IRQ,
 	BXTWC_THRM_LVL1_IRQ,
@@ -77,9 +74,11 @@ enum bxtwc_irqs {
 	BXTWC_CHGR_LVL1_IRQ,
 	BXTWC_GPIO_LVL1_IRQ,
 	BXTWC_CRIT_LVL1_IRQ,
+};
 
-	/* Level 2 */
-	BXTWC_PWRBTN_IRQ,
+enum bxtwc_irqs_pwrbtn {
+	BXTWC_PWRBTN_IRQ = 0,
+	BXTWC_UIBTN_IRQ,
 };
 
 enum bxtwc_irqs_bcu {
@@ -113,7 +112,10 @@ static const struct regmap_irq bxtwc_regmap_irqs[] = {
 	REGMAP_IRQ_REG(BXTWC_CHGR_LVL1_IRQ, 0, BIT(5)),
 	REGMAP_IRQ_REG(BXTWC_GPIO_LVL1_IRQ, 0, BIT(6)),
 	REGMAP_IRQ_REG(BXTWC_CRIT_LVL1_IRQ, 0, BIT(7)),
-	REGMAP_IRQ_REG(BXTWC_PWRBTN_IRQ, 1, 0x03),
+};
+
+static const struct regmap_irq bxtwc_regmap_irqs_pwrbtn[] = {
+	REGMAP_IRQ_REG(BXTWC_PWRBTN_IRQ, 0, 0x01),
 };
 
 static const struct regmap_irq bxtwc_regmap_irqs_bcu[] = {
@@ -125,7 +127,7 @@ static const struct regmap_irq bxtwc_regmap_irqs_adc[] = {
 };
 
 static const struct regmap_irq bxtwc_regmap_irqs_chgr[] = {
-	REGMAP_IRQ_REG(BXTWC_USBC_IRQ, 0, BIT(5)),
+	REGMAP_IRQ_REG(BXTWC_USBC_IRQ, 0, 0x20),
 	REGMAP_IRQ_REG(BXTWC_CHGR0_IRQ, 0, 0x1f),
 	REGMAP_IRQ_REG(BXTWC_CHGR1_IRQ, 1, 0x1f),
 };
@@ -144,7 +146,16 @@ static struct regmap_irq_chip bxtwc_regmap_irq_chip = {
 	.mask_base = BXTWC_MIRQLVL1,
 	.irqs = bxtwc_regmap_irqs,
 	.num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs),
-	.num_regs = 2,
+	.num_regs = 1,
+};
+
+static struct regmap_irq_chip bxtwc_regmap_irq_chip_pwrbtn = {
+	.name = "bxtwc_irq_chip_pwrbtn",
+	.status_base = BXTWC_PWRBTNIRQ,
+	.mask_base = BXTWC_MPWRBTNIRQ,
+	.irqs = bxtwc_regmap_irqs_pwrbtn,
+	.num_irqs = ARRAY_SIZE(bxtwc_regmap_irqs_pwrbtn),
+	.num_regs = 1,
 };
 
 static struct regmap_irq_chip bxtwc_regmap_irq_chip_tmu = {
@@ -472,6 +483,16 @@ static int bxtwc_probe(struct platform_device *pdev)
 		return ret;
 	}
 
+	ret = bxtwc_add_chained_irq_chip(pmic, pmic->irq_chip_data,
+					 BXTWC_PWRBTN_LVL1_IRQ,
+					 IRQF_ONESHOT,
+					 &bxtwc_regmap_irq_chip_pwrbtn,
+					 &pmic->irq_chip_data_pwrbtn);
+	if (ret) {
+		dev_err(&pdev->dev, "Failed to add PWRBTN IRQ chip\n");
+		return ret;
+	}
+
 	ret = bxtwc_add_chained_irq_chip(pmic, pmic->irq_chip_data,
 					 BXTWC_TMU_LVL1_IRQ,
 					 IRQF_ONESHOT,
diff --git a/include/linux/mfd/intel_soc_pmic.h b/include/linux/mfd/intel_soc_pmic.h
index 5aacdb017a9f..806a4f095312 100644
--- a/include/linux/mfd/intel_soc_pmic.h
+++ b/include/linux/mfd/intel_soc_pmic.h
@@ -25,6 +25,7 @@ struct intel_soc_pmic {
 	int irq;
 	struct regmap *regmap;
 	struct regmap_irq_chip_data *irq_chip_data;
+	struct regmap_irq_chip_data *irq_chip_data_pwrbtn;
 	struct regmap_irq_chip_data *irq_chip_data_tmu;
 	struct regmap_irq_chip_data *irq_chip_data_bcu;
 	struct regmap_irq_chip_data *irq_chip_data_adc;
-- 
2.18.0


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

* [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers
  2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
                   ` (2 preceding siblings ...)
  2018-08-30 16:52 ` [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well Andy Shevchenko
@ 2018-08-30 16:52 ` Andy Shevchenko
  2018-08-31 12:55   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  2018-08-30 16:52 ` [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier Andy Shevchenko
                   ` (3 subsequent siblings)
  7 siblings, 2 replies; 21+ messages in thread
From: Andy Shevchenko @ 2018-08-30 16:52 UTC (permalink / raw)
  To: Lee Jones, Hans de Goede, linux-kernel, Mika Westerberg; +Cc: Andy Shevchenko

Sort headers alphabetically for better maintenance.

No functional change.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mfd/intel_soc_pmic_bxtwc.c |  5 +++--
 drivers/mfd/intel_soc_pmic_core.c  | 13 +++++++------
 drivers/mfd/intel_soc_pmic_crc.c   |  3 ++-
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c
index 9ca1f8c015de..c878724497a9 100644
--- a/drivers/mfd/intel_soc_pmic_bxtwc.c
+++ b/drivers/mfd/intel_soc_pmic_bxtwc.c
@@ -13,15 +13,16 @@
  * more details.
  */
 
-#include <linux/module.h>
 #include <linux/acpi.h>
-#include <linux/err.h>
 #include <linux/delay.h>
+#include <linux/err.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/mfd/core.h>
 #include <linux/mfd/intel_soc_pmic.h>
 #include <linux/mfd/intel_soc_pmic_bxtwc.h>
+#include <linux/module.h>
+
 #include <asm/intel_pmc_ipc.h>
 
 /* PMIC device registers */
diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c
index 274306d98ac1..170d5ed16a3b 100644
--- a/drivers/mfd/intel_soc_pmic_core.c
+++ b/drivers/mfd/intel_soc_pmic_core.c
@@ -16,16 +16,17 @@
  * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
  */
 
-#include <linux/module.h>
-#include <linux/mfd/core.h>
+#include <linux/acpi.h>
+#include <linux/gpio/consumer.h>
+#include <linux/gpio/machine.h>
 #include <linux/i2c.h>
 #include <linux/interrupt.h>
-#include <linux/gpio/consumer.h>
-#include <linux/acpi.h>
-#include <linux/regmap.h>
+#include <linux/module.h>
+#include <linux/mfd/core.h>
 #include <linux/mfd/intel_soc_pmic.h>
-#include <linux/gpio/machine.h>
 #include <linux/pwm.h>
+#include <linux/regmap.h>
+
 #include "intel_soc_pmic_core.h"
 
 /* Crystal Cove PMIC shares same ACPI ID between different platforms */
diff --git a/drivers/mfd/intel_soc_pmic_crc.c b/drivers/mfd/intel_soc_pmic_crc.c
index d33a0cff8cbd..5ac6f3710294 100644
--- a/drivers/mfd/intel_soc_pmic_crc.c
+++ b/drivers/mfd/intel_soc_pmic_crc.c
@@ -16,10 +16,11 @@
  * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
  */
 
-#include <linux/mfd/core.h>
 #include <linux/interrupt.h>
 #include <linux/regmap.h>
+#include <linux/mfd/core.h>
 #include <linux/mfd/intel_soc_pmic.h>
+
 #include "intel_soc_pmic_core.h"
 
 #define CRYSTAL_COVE_MAX_REGISTER	0xC6
-- 
2.18.0


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

* [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier
  2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
                   ` (3 preceding siblings ...)
  2018-08-30 16:52 ` [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers Andy Shevchenko
@ 2018-08-30 16:52 ` Andy Shevchenko
  2018-08-31 12:56   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  2018-08-30 16:52 ` [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC Andy Shevchenko
                   ` (2 subsequent siblings)
  7 siblings, 2 replies; 21+ messages in thread
From: Andy Shevchenko @ 2018-08-30 16:52 UTC (permalink / raw)
  To: Lee Jones, Hans de Goede, linux-kernel, Mika Westerberg; +Cc: Andy Shevchenko

Reduce size of duplicated comments by switching to use SPDX identifier.

No functional change.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mfd/intel_msic.c                 |  5 +----
 drivers/mfd/intel_soc_pmic_bxtwc.c       | 10 +---------
 drivers/mfd/intel_soc_pmic_chtdc_ti.c    |  5 +----
 drivers/mfd/intel_soc_pmic_chtwc.c       |  5 +----
 drivers/mfd/intel_soc_pmic_core.c        | 12 ++----------
 drivers/mfd/intel_soc_pmic_core.h        | 12 ++----------
 drivers/mfd/intel_soc_pmic_crc.c         | 12 ++----------
 include/linux/mfd/intel_msic.h           |  7 ++-----
 include/linux/mfd/intel_soc_pmic.h       | 12 ++----------
 include/linux/mfd/intel_soc_pmic_bxtwc.h | 10 +---------
 10 files changed, 15 insertions(+), 75 deletions(-)

diff --git a/drivers/mfd/intel_msic.c b/drivers/mfd/intel_msic.c
index 441de7b3d231..bb24c2a07900 100644
--- a/drivers/mfd/intel_msic.c
+++ b/drivers/mfd/intel_msic.c
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Driver for Intel MSIC
  *
  * Copyright (C) 2011, Intel Corporation
  * Author: Mika Westerberg <mika.westerberg@linux.intel.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.
  */
 
 #include <linux/err.h>
diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c
index c878724497a9..6310c3bdb991 100644
--- a/drivers/mfd/intel_soc_pmic_bxtwc.c
+++ b/drivers/mfd/intel_soc_pmic_bxtwc.c
@@ -1,16 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * MFD core driver for Intel Broxton Whiskey Cove PMIC
  *
  * Copyright (C) 2015 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
  */
 
 #include <linux/acpi.h>
diff --git a/drivers/mfd/intel_soc_pmic_chtdc_ti.c b/drivers/mfd/intel_soc_pmic_chtdc_ti.c
index 861277c6580a..64b5c3cc30e7 100644
--- a/drivers/mfd/intel_soc_pmic_chtdc_ti.c
+++ b/drivers/mfd/intel_soc_pmic_chtdc_ti.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device access for Dollar Cove TI PMIC
  *
@@ -6,10 +7,6 @@
  *
  * Cleanup and forward-ported
  *   Copyright (c) 2017 Takashi Iwai <tiwai@suse.de>
- *
- * 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.
  */
 
 #include <linux/acpi.h>
diff --git a/drivers/mfd/intel_soc_pmic_chtwc.c b/drivers/mfd/intel_soc_pmic_chtwc.c
index b35da01d5bcf..64a3aece9c5e 100644
--- a/drivers/mfd/intel_soc_pmic_chtwc.c
+++ b/drivers/mfd/intel_soc_pmic_chtwc.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * MFD core driver for Intel Cherrytrail Whiskey Cove PMIC
  *
@@ -5,10 +6,6 @@
  *
  * Based on various non upstream patches to support the CHT Whiskey Cove PMIC:
  * Copyright (C) 2013-2015 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include <linux/acpi.h>
diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c
index 170d5ed16a3b..c9f35378d391 100644
--- a/drivers/mfd/intel_soc_pmic_core.c
+++ b/drivers/mfd/intel_soc_pmic_core.c
@@ -1,17 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
- * intel_soc_pmic_core.c - Intel SoC PMIC MFD Driver
+ * Intel SoC PMIC MFD Driver
  *
  * Copyright (C) 2013, 2014 Intel Corporation. All rights reserved.
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License version
- * 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  * Author: Yang, Bin <bin.yang@intel.com>
  * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
  */
diff --git a/drivers/mfd/intel_soc_pmic_core.h b/drivers/mfd/intel_soc_pmic_core.h
index 90a1416d4dac..d490685845eb 100644
--- a/drivers/mfd/intel_soc_pmic_core.h
+++ b/drivers/mfd/intel_soc_pmic_core.h
@@ -1,17 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
- * intel_soc_pmic_core.h - Intel SoC PMIC MFD Driver
+ * Intel SoC PMIC MFD Driver
  *
  * Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License version
- * 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  * Author: Yang, Bin <bin.yang@intel.com>
  * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
  */
diff --git a/drivers/mfd/intel_soc_pmic_crc.c b/drivers/mfd/intel_soc_pmic_crc.c
index 5ac6f3710294..b6ab72fa0569 100644
--- a/drivers/mfd/intel_soc_pmic_crc.c
+++ b/drivers/mfd/intel_soc_pmic_crc.c
@@ -1,17 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
- * intel_soc_pmic_crc.c - Device access for Crystal Cove PMIC
+ * Device access for Crystal Cove PMIC
  *
  * Copyright (C) 2013, 2014 Intel Corporation. All rights reserved.
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License version
- * 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  * Author: Yang, Bin <bin.yang@intel.com>
  * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
  */
diff --git a/include/linux/mfd/intel_msic.h b/include/linux/mfd/intel_msic.h
index 439a7a617bc9..317e8608cf41 100644
--- a/include/linux/mfd/intel_msic.h
+++ b/include/linux/mfd/intel_msic.h
@@ -1,12 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
- * include/linux/mfd/intel_msic.h - Core interface for Intel MSIC
+ * Core interface for Intel MSIC
  *
  * Copyright (C) 2011, Intel Corporation
  * Author: Mika Westerberg <mika.westerberg@linux.intel.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.
  */
 
 #ifndef __LINUX_MFD_INTEL_MSIC_H__
diff --git a/include/linux/mfd/intel_soc_pmic.h b/include/linux/mfd/intel_soc_pmic.h
index 806a4f095312..ed1dfba5e5f9 100644
--- a/include/linux/mfd/intel_soc_pmic.h
+++ b/include/linux/mfd/intel_soc_pmic.h
@@ -1,17 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
- * intel_soc_pmic.h - Intel SoC PMIC Driver
+ * Intel SoC PMIC Driver
  *
  * Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License version
- * 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
  * Author: Yang, Bin <bin.yang@intel.com>
  * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
  */
diff --git a/include/linux/mfd/intel_soc_pmic_bxtwc.h b/include/linux/mfd/intel_soc_pmic_bxtwc.h
index 0c351bc85d2d..9be566cc58c6 100644
--- a/include/linux/mfd/intel_soc_pmic_bxtwc.h
+++ b/include/linux/mfd/intel_soc_pmic_bxtwc.h
@@ -1,16 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Header file for Intel Broxton Whiskey Cove PMIC
  *
  * Copyright (C) 2015 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
  */
 
 #ifndef __INTEL_BXTWC_H__
-- 
2.18.0


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

* [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC
  2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
                   ` (4 preceding siblings ...)
  2018-08-30 16:52 ` [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier Andy Shevchenko
@ 2018-08-30 16:52 ` Andy Shevchenko
  2018-08-31 12:57   ` Mika Westerberg
  2018-09-10 15:52   ` Lee Jones
  2018-08-31 12:53 ` [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Mika Westerberg
  2018-09-10 15:50 ` Lee Jones
  7 siblings, 2 replies; 21+ messages in thread
From: Andy Shevchenko @ 2018-08-30 16:52 UTC (permalink / raw)
  To: Lee Jones, Hans de Goede, linux-kernel, Mika Westerberg; +Cc: Andy Shevchenko

There are few Intel MFD PMIC device drivers which I would like
to review.

Note, Intel MSIC is old system controller that based mostly on PMIC
integrated in it. Thus, I included it as well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 MAINTAINERS | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 0a340f680230..cbbeee75ebb9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7484,6 +7484,14 @@ F:	drivers/platform/x86/intel_punit_ipc.c
 F:	arch/x86/include/asm/intel_pmc_ipc.h
 F:	arch/x86/include/asm/intel_punit_ipc.h
 
+INTEL MULTIFUNCTION PMIC DEVICE DRIVERS
+R:	Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+S:	Maintained
+F:	drivers/mfd/intel_msic.c
+F:	drivers/mfd/intel_soc_pmic*
+F:	include/linux/mfd/intel_msic.h
+F:	include/linux/mfd/intel_soc_pmic*
+
 INTEL PRO/WIRELESS 2100, 2200BG, 2915ABG NETWORK CONNECTION SUPPORT
 M:	Stanislav Yakovlev <stas.yakovlev@gmail.com>
 L:	linux-wireless@vger.kernel.org
-- 
2.18.0


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

* Re: [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro
  2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
                   ` (5 preceding siblings ...)
  2018-08-30 16:52 ` [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC Andy Shevchenko
@ 2018-08-31 12:53 ` Mika Westerberg
  2018-09-10 15:50 ` Lee Jones
  7 siblings, 0 replies; 21+ messages in thread
From: Mika Westerberg @ 2018-08-31 12:53 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Lee Jones, Hans de Goede, linux-kernel

On Thu, Aug 30, 2018 at 07:52:49PM +0300, Andy Shevchenko wrote:
> Instead of open coding each data structure with IRQ resources,
> use dedicated macro.
> 
> In one case use DEFINE_RES_IRQ_NAMED() and DEFINE_RES_MEM_NAMED().
> 
> No functional change intended.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro
  2018-08-30 16:52 ` [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro Andy Shevchenko
@ 2018-08-31 12:53   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Mika Westerberg @ 2018-08-31 12:53 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Lee Jones, Hans de Goede, linux-kernel

On Thu, Aug 30, 2018 at 07:52:50PM +0300, Andy Shevchenko wrote:
> Instead of open coding each data structure with IRQ resources,
> use dedicated macro.
> 
> No functional change intended.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro
  2018-08-30 16:52 ` [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro Andy Shevchenko
@ 2018-08-31 12:54   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Mika Westerberg @ 2018-08-31 12:54 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Lee Jones, Hans de Goede, linux-kernel

On Thu, Aug 30, 2018 at 07:52:51PM +0300, Andy Shevchenko wrote:
> Instead of open coding each data structure with regmap IRQresources,
> use dedicated macro.
> 
> No functional change intended.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well
  2018-08-30 16:52 ` [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well Andy Shevchenko
@ 2018-08-31 12:54   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Mika Westerberg @ 2018-08-31 12:54 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Lee Jones, Hans de Goede, linux-kernel

On Thu, Aug 30, 2018 at 07:52:52PM +0300, Andy Shevchenko wrote:
> Power button IRQ actually has a second level of interrupts to
> distinguish between UI and POWER buttons. Moreover, current
> implementation looks awkward in approach to handle second level IRQs by
> first level related IRQ chip.
> 
> To address above issues, split power button IRQ to be chained as well.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers
  2018-08-30 16:52 ` [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers Andy Shevchenko
@ 2018-08-31 12:55   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Mika Westerberg @ 2018-08-31 12:55 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Lee Jones, Hans de Goede, linux-kernel

On Thu, Aug 30, 2018 at 07:52:53PM +0300, Andy Shevchenko wrote:
> Sort headers alphabetically for better maintenance.
> 
> No functional change.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier
  2018-08-30 16:52 ` [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier Andy Shevchenko
@ 2018-08-31 12:56   ` Mika Westerberg
  2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Mika Westerberg @ 2018-08-31 12:56 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Lee Jones, Hans de Goede, linux-kernel

On Thu, Aug 30, 2018 at 07:52:54PM +0300, Andy Shevchenko wrote:
> Reduce size of duplicated comments by switching to use SPDX identifier.
> 
> No functional change.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC
  2018-08-30 16:52 ` [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC Andy Shevchenko
@ 2018-08-31 12:57   ` Mika Westerberg
  2018-09-10 15:52   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Mika Westerberg @ 2018-08-31 12:57 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Lee Jones, Hans de Goede, linux-kernel

On Thu, Aug 30, 2018 at 07:52:55PM +0300, Andy Shevchenko wrote:
> There are few Intel MFD PMIC device drivers which I would like
> to review.
> 
> Note, Intel MSIC is old system controller that based mostly on PMIC
> integrated in it. Thus, I included it as well.

Good idea.

> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro
  2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
                   ` (6 preceding siblings ...)
  2018-08-31 12:53 ` [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Mika Westerberg
@ 2018-09-10 15:50 ` Lee Jones
  7 siblings, 0 replies; 21+ messages in thread
From: Lee Jones @ 2018-09-10 15:50 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Hans de Goede, linux-kernel, Mika Westerberg

On Thu, 30 Aug 2018, Andy Shevchenko wrote:

> Instead of open coding each data structure with IRQ resources,
> use dedicated macro.
> 
> In one case use DEFINE_RES_IRQ_NAMED() and DEFINE_RES_MEM_NAMED().
> 
> No functional change intended.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/intel_msic.c | 44 +++++++++-------------------------------
>  1 file changed, 10 insertions(+), 34 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro
  2018-08-30 16:52 ` [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro Andy Shevchenko
  2018-08-31 12:53   ` Mika Westerberg
@ 2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Lee Jones @ 2018-09-10 15:51 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Hans de Goede, linux-kernel, Mika Westerberg

On Thu, 30 Aug 2018, Andy Shevchenko wrote:

> Instead of open coding each data structure with IRQ resources,
> use dedicated macro.
> 
> No functional change intended.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/intel_soc_pmic_crc.c | 35 +++++---------------------------
>  1 file changed, 5 insertions(+), 30 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro
  2018-08-30 16:52 ` [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro Andy Shevchenko
  2018-08-31 12:54   ` Mika Westerberg
@ 2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Lee Jones @ 2018-09-10 15:51 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Hans de Goede, linux-kernel, Mika Westerberg

On Thu, 30 Aug 2018, Andy Shevchenko wrote:

> Instead of open coding each data structure with regmap IRQresources,
> use dedicated macro.
> 
> No functional change intended.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/intel_soc_pmic_crc.c | 28 +++++++---------------------
>  1 file changed, 7 insertions(+), 21 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well
  2018-08-30 16:52 ` [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well Andy Shevchenko
  2018-08-31 12:54   ` Mika Westerberg
@ 2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Lee Jones @ 2018-09-10 15:51 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Hans de Goede, linux-kernel, Mika Westerberg

On Thu, 30 Aug 2018, Andy Shevchenko wrote:

> Power button IRQ actually has a second level of interrupts to
> distinguish between UI and POWER buttons. Moreover, current
> implementation looks awkward in approach to handle second level IRQs by
> first level related IRQ chip.
> 
> To address above issues, split power button IRQ to be chained as well.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/intel_soc_pmic_bxtwc.c | 41 ++++++++++++++++++++++--------
>  include/linux/mfd/intel_soc_pmic.h |  1 +
>  2 files changed, 32 insertions(+), 10 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers
  2018-08-30 16:52 ` [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers Andy Shevchenko
  2018-08-31 12:55   ` Mika Westerberg
@ 2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Lee Jones @ 2018-09-10 15:51 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Hans de Goede, linux-kernel, Mika Westerberg

On Thu, 30 Aug 2018, Andy Shevchenko wrote:

> Sort headers alphabetically for better maintenance.
> 
> No functional change.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/intel_soc_pmic_bxtwc.c |  5 +++--
>  drivers/mfd/intel_soc_pmic_core.c  | 13 +++++++------
>  drivers/mfd/intel_soc_pmic_crc.c   |  3 ++-
>  3 files changed, 12 insertions(+), 9 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier
  2018-08-30 16:52 ` [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier Andy Shevchenko
  2018-08-31 12:56   ` Mika Westerberg
@ 2018-09-10 15:51   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Lee Jones @ 2018-09-10 15:51 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Hans de Goede, linux-kernel, Mika Westerberg

On Thu, 30 Aug 2018, Andy Shevchenko wrote:

> Reduce size of duplicated comments by switching to use SPDX identifier.
> 
> No functional change.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/intel_msic.c                 |  5 +----
>  drivers/mfd/intel_soc_pmic_bxtwc.c       | 10 +---------
>  drivers/mfd/intel_soc_pmic_chtdc_ti.c    |  5 +----
>  drivers/mfd/intel_soc_pmic_chtwc.c       |  5 +----
>  drivers/mfd/intel_soc_pmic_core.c        | 12 ++----------
>  drivers/mfd/intel_soc_pmic_core.h        | 12 ++----------
>  drivers/mfd/intel_soc_pmic_crc.c         | 12 ++----------
>  include/linux/mfd/intel_msic.h           |  7 ++-----
>  include/linux/mfd/intel_soc_pmic.h       | 12 ++----------
>  include/linux/mfd/intel_soc_pmic_bxtwc.h | 10 +---------
>  10 files changed, 15 insertions(+), 75 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC
  2018-08-30 16:52 ` [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC Andy Shevchenko
  2018-08-31 12:57   ` Mika Westerberg
@ 2018-09-10 15:52   ` Lee Jones
  1 sibling, 0 replies; 21+ messages in thread
From: Lee Jones @ 2018-09-10 15:52 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Hans de Goede, linux-kernel, Mika Westerberg

On Thu, 30 Aug 2018, Andy Shevchenko wrote:

> There are few Intel MFD PMIC device drivers which I would like
> to review.
> 
> Note, Intel MSIC is old system controller that based mostly on PMIC
> integrated in it. Thus, I included it as well.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  MAINTAINERS | 8 ++++++++
>  1 file changed, 8 insertions(+)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

end of thread, other threads:[~2018-09-10 15:52 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-30 16:52 [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Andy Shevchenko
2018-08-30 16:52 ` [PATCH v1 2/7] mfd: intel_soc_pmic_crc: Use DEFINE_RES_IRQ_NAMED() macro Andy Shevchenko
2018-08-31 12:53   ` Mika Westerberg
2018-09-10 15:51   ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 3/7] mfd: intel_soc_pmic_crc: Use REGMAP_IRQ_REG() macro Andy Shevchenko
2018-08-31 12:54   ` Mika Westerberg
2018-09-10 15:51   ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 4/7] mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well Andy Shevchenko
2018-08-31 12:54   ` Mika Westerberg
2018-09-10 15:51   ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 5/7] mfd: Sort headers alphabetically for Intel PMIC drivers Andy Shevchenko
2018-08-31 12:55   ` Mika Westerberg
2018-09-10 15:51   ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 6/7] mfd: Convert Intel PMIC drivers to use SPDX identifier Andy Shevchenko
2018-08-31 12:56   ` Mika Westerberg
2018-09-10 15:51   ` Lee Jones
2018-08-30 16:52 ` [PATCH v1 7/7] MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC Andy Shevchenko
2018-08-31 12:57   ` Mika Westerberg
2018-09-10 15:52   ` Lee Jones
2018-08-31 12:53 ` [PATCH v1 1/7] mfd: intel_msic: Use DEFINE_RES_IRQ() macro Mika Westerberg
2018-09-10 15:50 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).