All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
@ 2014-03-10 21:34 Peter Tyser
  2014-03-10 21:34 ` [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present Peter Tyser
                   ` (9 more replies)
  0 siblings, 10 replies; 39+ messages in thread
From: Peter Tyser @ 2014-03-10 21:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Tyser, Guenter Roeck, James Ralston, Samuel Ortiz, Lee Jones

The original bitmask of 0x10 was incorrect and would result in a write
to a reserved read-only bit instead of enabling the ACPI I/O
region.  Update it to the proper value of 0x80.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Rajat Jain <rajatjain@juniper.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: James Ralston <james.d.ralston@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
---
 drivers/mfd/lpc_ich.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index be93fa2..be10ad4 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -759,7 +759,7 @@ static void lpc_ich_enable_acpi_space(struct pci_dev *dev)
 	u8 reg_save;
 
 	pci_read_config_byte(dev, priv->acpi.ctrl, &reg_save);
-	pci_write_config_byte(dev, priv->acpi.ctrl, reg_save | 0x10);
+	pci_write_config_byte(dev, priv->acpi.ctrl, reg_save | 0x80);
 	priv->acpi.save = reg_save;
 }
 
-- 
1.7.7.GIT


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

* [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
@ 2014-03-10 21:34 ` Peter Tyser
  2014-03-11  0:59   ` Guenter Roeck
  2014-03-13 22:46   ` Lee Jones
  2014-03-10 21:34 ` [PATCH 3/8] mfd: lpc_ich: Remove lpc_ich_cfg struct use Peter Tyser
                   ` (8 subsequent siblings)
  9 siblings, 2 replies; 39+ messages in thread
From: Peter Tyser @ 2014-03-10 21:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Tyser, Guenter Roeck, James Ralston, Samuel Ortiz, Lee Jones

Some chipsets don't currently have GPIO support enabled.  For these
chipsets don't go through the process of initializing the GPIO region.

Make the same change for the watchdog initialization for chipsets which
may not enable the WDT in the future.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Rajat Jain <rajatjain@juniper.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: James Ralston <james.d.ralston@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
---
 drivers/mfd/lpc_ich.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index be10ad4..e247e7e 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -967,13 +967,17 @@ static int lpc_ich_probe(struct pci_dev *dev,
 
 	pci_set_drvdata(dev, priv);
 
-	ret = lpc_ich_init_wdt(dev);
-	if (!ret)
-		cell_added = true;
+	if (lpc_chipset_info[priv->chipset].iTCO_version) {
+		ret = lpc_ich_init_wdt(dev);
+		if (!ret)
+			cell_added = true;
+	}
 
-	ret = lpc_ich_init_gpio(dev);
-	if (!ret)
-		cell_added = true;
+	if (lpc_chipset_info[priv->chipset].gpio_version) {
+		ret = lpc_ich_init_gpio(dev);
+		if (!ret)
+			cell_added = true;
+	}
 
 	/*
 	 * We only care if at least one or none of the cells registered
-- 
1.7.7.GIT


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

* [PATCH 3/8] mfd: lpc_ich: Remove lpc_ich_cfg struct use
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
  2014-03-10 21:34 ` [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present Peter Tyser
@ 2014-03-10 21:34 ` Peter Tyser
  2014-03-11  0:59   ` Guenter Roeck
  2014-03-13 22:46   ` Lee Jones
  2014-03-10 21:34 ` [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3 Peter Tyser
                   ` (7 subsequent siblings)
  9 siblings, 2 replies; 39+ messages in thread
From: Peter Tyser @ 2014-03-10 21:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Tyser, Guenter Roeck, James Ralston, Samuel Ortiz, Lee Jones

Future chipsets will use different register layouts that don't map
cleanly to the lpc_ich_cfg fields.  Remove the lpc_ich_cfg struct and
add explicit fields to the higher level lpc_ich_priv structure.

This change should have no functional impact.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Rajat Jain <rajatjain@juniper.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: James Ralston <james.d.ralston@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
---
 drivers/mfd/lpc_ich.c |   63 +++++++++++++++++++++++++------------------------
 1 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index e247e7e..2cc052a 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -90,16 +90,16 @@
 #define wdt_mem_res(i) wdt_res(ICH_RES_MEM_OFF, i)
 #define wdt_res(b, i) (&wdt_ich_res[(b) + (i)])
 
-struct lpc_ich_cfg {
-	int base;
-	int ctrl;
-	int save;
-};
-
 struct lpc_ich_priv {
 	int chipset;
-	struct lpc_ich_cfg acpi;
-	struct lpc_ich_cfg gpio;
+
+	int abase;		/* ACPI base */
+	int actrl;		/* ACPI control or PMC base */
+	int gbase;		/* GPIO base */
+	int gctrl;		/* GPIO control */
+
+	int actrl_save;		/* Cached ACPI control base value */
+	int gctrl_save;		/* Cached GPIO control value */
 };
 
 static struct resource wdt_ich_res[] = {
@@ -742,14 +742,14 @@ static void lpc_ich_restore_config_space(struct pci_dev *dev)
 {
 	struct lpc_ich_priv *priv = pci_get_drvdata(dev);
 
-	if (priv->acpi.save >= 0) {
-		pci_write_config_byte(dev, priv->acpi.ctrl, priv->acpi.save);
-		priv->acpi.save = -1;
+	if (priv->actrl_save >= 0) {
+		pci_write_config_byte(dev, priv->actrl, priv->actrl_save);
+		priv->actrl_save = -1;
 	}
 
-	if (priv->gpio.save >= 0) {
-		pci_write_config_byte(dev, priv->gpio.ctrl, priv->gpio.save);
-		priv->gpio.save = -1;
+	if (priv->gctrl_save >= 0) {
+		pci_write_config_byte(dev, priv->gctrl, priv->gctrl_save);
+		priv->gctrl_save = -1;
 	}
 }
 
@@ -758,9 +758,9 @@ static void lpc_ich_enable_acpi_space(struct pci_dev *dev)
 	struct lpc_ich_priv *priv = pci_get_drvdata(dev);
 	u8 reg_save;
 
-	pci_read_config_byte(dev, priv->acpi.ctrl, &reg_save);
-	pci_write_config_byte(dev, priv->acpi.ctrl, reg_save | 0x80);
-	priv->acpi.save = reg_save;
+	pci_read_config_byte(dev, priv->actrl, &reg_save);
+	pci_write_config_byte(dev, priv->actrl, reg_save | 0x80);
+	priv->actrl_save = reg_save;
 }
 
 static void lpc_ich_enable_gpio_space(struct pci_dev *dev)
@@ -768,9 +768,9 @@ static void lpc_ich_enable_gpio_space(struct pci_dev *dev)
 	struct lpc_ich_priv *priv = pci_get_drvdata(dev);
 	u8 reg_save;
 
-	pci_read_config_byte(dev, priv->gpio.ctrl, &reg_save);
-	pci_write_config_byte(dev, priv->gpio.ctrl, reg_save | 0x10);
-	priv->gpio.save = reg_save;
+	pci_read_config_byte(dev, priv->gctrl, &reg_save);
+	pci_write_config_byte(dev, priv->gctrl, reg_save | 0x10);
+	priv->gctrl_save = reg_save;
 }
 
 static void lpc_ich_finalize_cell(struct pci_dev *dev, struct mfd_cell *cell)
@@ -815,7 +815,7 @@ static int lpc_ich_init_gpio(struct pci_dev *dev)
 	struct resource *res;
 
 	/* Setup power management base register */
-	pci_read_config_dword(dev, priv->acpi.base, &base_addr_cfg);
+	pci_read_config_dword(dev, priv->abase, &base_addr_cfg);
 	base_addr = base_addr_cfg & 0x0000ff80;
 	if (!base_addr) {
 		dev_notice(&dev->dev, "I/O space for ACPI uninitialized\n");
@@ -841,7 +841,7 @@ static int lpc_ich_init_gpio(struct pci_dev *dev)
 
 gpe0_done:
 	/* Setup GPIO base register */
-	pci_read_config_dword(dev, priv->gpio.base, &base_addr_cfg);
+	pci_read_config_dword(dev, priv->gbase, &base_addr_cfg);
 	base_addr = base_addr_cfg & 0x0000ff80;
 	if (!base_addr) {
 		dev_notice(&dev->dev, "I/O space for GPIO uninitialized\n");
@@ -891,7 +891,7 @@ static int lpc_ich_init_wdt(struct pci_dev *dev)
 	struct resource *res;
 
 	/* Setup power management base register */
-	pci_read_config_dword(dev, priv->acpi.base, &base_addr_cfg);
+	pci_read_config_dword(dev, priv->abase, &base_addr_cfg);
 	base_addr = base_addr_cfg & 0x0000ff80;
 	if (!base_addr) {
 		dev_notice(&dev->dev, "I/O space for ACPI uninitialized\n");
@@ -952,17 +952,18 @@ static int lpc_ich_probe(struct pci_dev *dev,
 		return -ENOMEM;
 
 	priv->chipset = id->driver_data;
-	priv->acpi.save = -1;
-	priv->acpi.base = ACPIBASE;
-	priv->acpi.ctrl = ACPICTRL;
 
-	priv->gpio.save = -1;
+	priv->actrl_save = -1;
+	priv->abase = ACPIBASE;
+	priv->actrl = ACPICTRL;
+
+	priv->gctrl_save = -1;
 	if (priv->chipset <= LPC_ICH5) {
-		priv->gpio.base = GPIOBASE_ICH0;
-		priv->gpio.ctrl = GPIOCTRL_ICH0;
+		priv->gbase = GPIOBASE_ICH0;
+		priv->gctrl = GPIOCTRL_ICH0;
 	} else {
-		priv->gpio.base = GPIOBASE_ICH6;
-		priv->gpio.ctrl = GPIOCTRL_ICH6;
+		priv->gbase = GPIOBASE_ICH6;
+		priv->gctrl = GPIOCTRL_ICH6;
 	}
 
 	pci_set_drvdata(dev, priv);
-- 
1.7.7.GIT


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

* [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
  2014-03-10 21:34 ` [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present Peter Tyser
  2014-03-10 21:34 ` [PATCH 3/8] mfd: lpc_ich: Remove lpc_ich_cfg struct use Peter Tyser
@ 2014-03-10 21:34 ` Peter Tyser
  2014-03-11  1:02   ` Guenter Roeck
                     ` (2 more replies)
  2014-03-10 21:34 ` [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon Peter Tyser
                   ` (6 subsequent siblings)
  9 siblings, 3 replies; 39+ messages in thread
From: Peter Tyser @ 2014-03-10 21:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Tyser, Guenter Roeck, James Ralston, Samuel Ortiz,
	Lee Jones, Wim Van Sebroeck, linux-watchdog

Some newer Atom CPUs, eg Avoton and Bay Trail, use slightly different
register layouts for the iTCO than the current v1 and v2 iTCO.
Differences from previous iTCO versions include:
- The ACPI space is enabled in the "ACPI base address" register instead
  of the "ACPI control register"

- The "no reboot" functionality is set in the "Power Management
  Configuration" register instead of the "General Control and Status"
  (GCS) register or PCI configuration space.

- The "ACPI Control Register" is not present on v3.  The "Power
  Management Configuration Base Address" register resides at the same
  address is Avoton/Bay Trail.

To differentiate these newer chipsets create a new v3 iTCO version and
update the MFD driver to support them.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Rajat Jain <rajatjain@juniper.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: James Ralston <james.d.ralston@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: linux-watchdog@vger.kernel.org
---
 drivers/mfd/lpc_ich.c       |   81 +++++++++++++++++++++++++++++++++++-------
 include/linux/mfd/lpc_ich.h |    8 ++--
 2 files changed, 71 insertions(+), 18 deletions(-)

diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index 2cc052a..b4bfc58 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -72,9 +72,11 @@
 #define ACPIBASE_GPE_END	0x2f
 #define ACPIBASE_SMI_OFF	0x30
 #define ACPIBASE_SMI_END	0x33
+#define ACPIBASE_PMC_OFF	0x08
+#define ACPIBASE_PMC_END	0x0c
 #define ACPIBASE_TCO_OFF	0x60
 #define ACPIBASE_TCO_END	0x7f
-#define ACPICTRL		0x44
+#define ACPICTRL_PMCBASE	0x44
 
 #define ACPIBASE_GCS_OFF	0x3410
 #define ACPIBASE_GCS_END	0x3414
@@ -94,11 +96,12 @@ struct lpc_ich_priv {
 	int chipset;
 
 	int abase;		/* ACPI base */
-	int actrl;		/* ACPI control or PMC base */
+	int actrl_pbase;	/* ACPI control or PMC base */
 	int gbase;		/* GPIO base */
 	int gctrl;		/* GPIO control */
 
-	int actrl_save;		/* Cached ACPI control base value */
+	int abase_save;		/* Cached ACPI base value */
+	int actrl_pbase_save;		/* Cached ACPI control or PMC base value */
 	int gctrl_save;		/* Cached GPIO control value */
 };
 
@@ -111,7 +114,7 @@ static struct resource wdt_ich_res[] = {
 	{
 		.flags = IORESOURCE_IO,
 	},
-	/* GCS */
+	/* GCS or PMC */
 	{
 		.flags = IORESOURCE_MEM,
 	},
@@ -742,9 +745,15 @@ static void lpc_ich_restore_config_space(struct pci_dev *dev)
 {
 	struct lpc_ich_priv *priv = pci_get_drvdata(dev);
 
-	if (priv->actrl_save >= 0) {
-		pci_write_config_byte(dev, priv->actrl, priv->actrl_save);
-		priv->actrl_save = -1;
+	if (priv->abase_save >= 0) {
+		pci_write_config_byte(dev, priv->abase, priv->abase_save);
+		priv->abase_save = -1;
+	}
+
+	if (priv->actrl_pbase_save >= 0) {
+		pci_write_config_byte(dev, priv->actrl_pbase,
+			priv->actrl_pbase_save);
+		priv->actrl_pbase_save = -1;
 	}
 
 	if (priv->gctrl_save >= 0) {
@@ -758,9 +767,26 @@ static void lpc_ich_enable_acpi_space(struct pci_dev *dev)
 	struct lpc_ich_priv *priv = pci_get_drvdata(dev);
 	u8 reg_save;
 
-	pci_read_config_byte(dev, priv->actrl, &reg_save);
-	pci_write_config_byte(dev, priv->actrl, reg_save | 0x80);
-	priv->actrl_save = reg_save;
+	switch (lpc_chipset_info[priv->chipset].iTCO_version) {
+	case 3:
+		/*
+		 * Some chipsets (eg Avoton) enable the ACPI space in the
+		 * ACPI BASE register.
+		 */
+		pci_read_config_byte(dev, priv->abase, &reg_save);
+		pci_write_config_byte(dev, priv->abase, reg_save | 0x2);
+		priv->abase_save = reg_save;
+		break;
+	default:
+		/*
+		 * Most chipsets enable the ACPI space in the ACPI control
+		 * register.
+		 */
+		pci_read_config_byte(dev, priv->actrl_pbase, &reg_save);
+		pci_write_config_byte(dev, priv->actrl_pbase, reg_save | 0x80);
+		priv->actrl_pbase_save = reg_save;
+		break;
+	}
 }
 
 static void lpc_ich_enable_gpio_space(struct pci_dev *dev)
@@ -773,6 +799,17 @@ static void lpc_ich_enable_gpio_space(struct pci_dev *dev)
 	priv->gctrl_save = reg_save;
 }
 
+static void lpc_ich_enable_pmc_space(struct pci_dev *dev)
+{
+	struct lpc_ich_priv *priv = pci_get_drvdata(dev);
+	u8 reg_save;
+
+	pci_read_config_byte(dev, priv->actrl_pbase, &reg_save);
+	pci_write_config_byte(dev, priv->actrl_pbase, reg_save | 0x2);
+
+	priv->actrl_pbase_save = reg_save;
+}
+
 static void lpc_ich_finalize_cell(struct pci_dev *dev, struct mfd_cell *cell)
 {
 	struct lpc_ich_priv *priv = pci_get_drvdata(dev);
@@ -910,14 +947,20 @@ static int lpc_ich_init_wdt(struct pci_dev *dev)
 	lpc_ich_enable_acpi_space(dev);
 
 	/*
+	 * iTCO v2:
 	 * Get the Memory-Mapped GCS register. To get access to it
 	 * we have to read RCBA from PCI Config space 0xf0 and use
 	 * it as base. GCS = RCBA + ICH6_GCS(0x3410).
+	 *
+	 * iTCO v3:
+	 * Get the Power Management Configuration register.  To get access
+	 * to it we have to read the PMC BASE from config space and address
+	 * the register at offset 0x8.
 	 */
 	if (lpc_chipset_info[priv->chipset].iTCO_version == 1) {
 		/* Don't register iomem for TCO ver 1 */
 		lpc_ich_cells[LPC_WDT].num_resources--;
-	} else {
+	} else if (lpc_chipset_info[priv->chipset].iTCO_version == 2) {
 		pci_read_config_dword(dev, RCBABASE, &base_addr_cfg);
 		base_addr = base_addr_cfg & 0xffffc000;
 		if (!(base_addr_cfg & 1)) {
@@ -926,9 +969,17 @@ static int lpc_ich_init_wdt(struct pci_dev *dev)
 			ret = -ENODEV;
 			goto wdt_done;
 		}
-		res = wdt_mem_res(ICH_RES_MEM_GCS);
+		res = wdt_mem_res(ICH_RES_MEM_GCS_PMC);
 		res->start = base_addr + ACPIBASE_GCS_OFF;
 		res->end = base_addr + ACPIBASE_GCS_END;
+	} else if (lpc_chipset_info[priv->chipset].iTCO_version == 3) {
+		lpc_ich_enable_pmc_space(dev);
+		pci_read_config_dword(dev, ACPICTRL_PMCBASE, &base_addr_cfg);
+		base_addr = base_addr_cfg & 0xfffffe00;
+
+		res = wdt_mem_res(ICH_RES_MEM_GCS_PMC);
+		res->start = base_addr + ACPIBASE_PMC_OFF;
+		res->end = base_addr + ACPIBASE_PMC_END;
 	}
 
 	lpc_ich_finalize_cell(dev, &lpc_ich_cells[LPC_WDT]);
@@ -953,9 +1004,11 @@ static int lpc_ich_probe(struct pci_dev *dev,
 
 	priv->chipset = id->driver_data;
 
-	priv->actrl_save = -1;
+	priv->actrl_pbase_save = -1;
+	priv->abase_save = -1;
+
 	priv->abase = ACPIBASE;
-	priv->actrl = ACPICTRL;
+	priv->actrl_pbase = ACPICTRL_PMCBASE;
 
 	priv->gctrl_save = -1;
 	if (priv->chipset <= LPC_ICH5) {
diff --git a/include/linux/mfd/lpc_ich.h b/include/linux/mfd/lpc_ich.h
index 3e1df64..9b29d65 100644
--- a/include/linux/mfd/lpc_ich.h
+++ b/include/linux/mfd/lpc_ich.h
@@ -21,10 +21,10 @@
 #define LPC_ICH_H
 
 /* Watchdog resources */
-#define ICH_RES_IO_TCO	0
-#define ICH_RES_IO_SMI	1
-#define ICH_RES_MEM_OFF	2
-#define ICH_RES_MEM_GCS	0
+#define ICH_RES_IO_TCO		0
+#define ICH_RES_IO_SMI		1
+#define ICH_RES_MEM_OFF		2
+#define ICH_RES_MEM_GCS_PMC	0
 
 /* GPIO resources */
 #define ICH_RES_GPIO	0
-- 
1.7.7.GIT


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

* [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
                   ` (2 preceding siblings ...)
  2014-03-10 21:34 ` [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3 Peter Tyser
@ 2014-03-10 21:34 ` Peter Tyser
  2014-03-11  1:06   ` Guenter Roeck
                     ` (2 more replies)
  2014-03-10 21:34 ` [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3 Peter Tyser
                   ` (5 subsequent siblings)
  9 siblings, 3 replies; 39+ messages in thread
From: Peter Tyser @ 2014-03-10 21:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Tyser, Guenter Roeck, James Ralston, Samuel Ortiz,
	Lee Jones, Wim Van Sebroeck, linux-watchdog

Some new Atom's, eg Avoton and Bay Trail, have slightly different iTCO
functionality:
- The watchdog timer ticks at 1 second instead of .6 seconds

- Some 8 and 16-bit registers were combined into 32-bit registers

- Some registers were removed (DAT_IN, DAT_OUT, MESSAGE)

- The BOOT_STS field in TCO_STS was removed

- The NO_REBOOT bit is in the PMC area instead of GCS

Update the driver to support the above changes and bump the version to
1.11.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Rajat Jain <rajatjain@juniper.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: James Ralston <james.d.ralston@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: linux-watchdog@vger.kernel.org
---
 drivers/watchdog/iTCO_wdt.c |  137 ++++++++++++++++++++++++++-----------------
 1 files changed, 82 insertions(+), 55 deletions(-)

diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
index 04f8af6..6d5928f 100644
--- a/drivers/watchdog/iTCO_wdt.c
+++ b/drivers/watchdog/iTCO_wdt.c
@@ -48,7 +48,7 @@
 
 /* Module and version information */
 #define DRV_NAME	"iTCO_wdt"
-#define DRV_VERSION	"1.10"
+#define DRV_VERSION	"1.11"
 
 /* Includes */
 #include <linux/module.h>		/* For module specific items */
@@ -92,9 +92,12 @@ static struct {		/* this is private data for the iTCO_wdt device */
 	unsigned int iTCO_version;
 	struct resource *tco_res;
 	struct resource *smi_res;
-	struct resource *gcs_res;
-	/* NO_REBOOT flag is Memory-Mapped GCS register bit 5 (TCO version 2)*/
-	unsigned long __iomem *gcs;
+	/*
+	 * NO_REBOOT flag is Memory-Mapped GCS register bit 5 (TCO version 2),
+	 * or memory-mapped PMC register bit 4 (TCO version 3).
+	 */
+	struct resource *gcs_pmc_res;
+	unsigned long __iomem *gcs_pmc;
 	/* the lock for io operations */
 	spinlock_t io_lock;
 	struct platform_device *dev;
@@ -125,11 +128,19 @@ MODULE_PARM_DESC(turn_SMI_watchdog_clear_off,
  * Some TCO specific functions
  */
 
-static inline unsigned int seconds_to_ticks(int seconds)
+/*
+ * The iTCO v1 and v2's internal timer is stored as ticks which decrement
+ * every 0.6 seconds.  v3's internal timer is stored as seconds (some
+ * datasheets incorrectly state 0.6 seconds).
+ */
+static inline unsigned int seconds_to_ticks(int secs)
 {
-	/* the internal timer is stored as ticks which decrement
-	 * every 0.6 seconds */
-	return (seconds * 10) / 6;
+	return iTCO_wdt_private.iTCO_version == 3 ? secs : (secs * 10) / 6;
+}
+
+static inline unsigned int ticks_to_seconds(int ticks)
+{
+	return iTCO_wdt_private.iTCO_version == 3 ? ticks : (ticks * 6) / 10;
 }
 
 static void iTCO_wdt_set_NO_REBOOT_bit(void)
@@ -137,10 +148,14 @@ static void iTCO_wdt_set_NO_REBOOT_bit(void)
 	u32 val32;
 
 	/* Set the NO_REBOOT bit: this disables reboots */
-	if (iTCO_wdt_private.iTCO_version == 2) {
-		val32 = readl(iTCO_wdt_private.gcs);
+	if (iTCO_wdt_private.iTCO_version == 3) {
+		val32 = readl(iTCO_wdt_private.gcs_pmc);
+		val32 |= 0x00000010;
+		writel(val32, iTCO_wdt_private.gcs_pmc);
+	} else if (iTCO_wdt_private.iTCO_version == 2) {
+		val32 = readl(iTCO_wdt_private.gcs_pmc);
 		val32 |= 0x00000020;
-		writel(val32, iTCO_wdt_private.gcs);
+		writel(val32, iTCO_wdt_private.gcs_pmc);
 	} else if (iTCO_wdt_private.iTCO_version == 1) {
 		pci_read_config_dword(iTCO_wdt_private.pdev, 0xd4, &val32);
 		val32 |= 0x00000002;
@@ -154,12 +169,20 @@ static int iTCO_wdt_unset_NO_REBOOT_bit(void)
 	u32 val32;
 
 	/* Unset the NO_REBOOT bit: this enables reboots */
-	if (iTCO_wdt_private.iTCO_version == 2) {
-		val32 = readl(iTCO_wdt_private.gcs);
+	if (iTCO_wdt_private.iTCO_version == 3) {
+		val32 = readl(iTCO_wdt_private.gcs_pmc);
+		val32 &= 0xffffffef;
+		writel(val32, iTCO_wdt_private.gcs_pmc);
+
+		val32 = readl(iTCO_wdt_private.gcs_pmc);
+		if (val32 & 0x00000010)
+			ret = -EIO;
+	} else if (iTCO_wdt_private.iTCO_version == 2) {
+		val32 = readl(iTCO_wdt_private.gcs_pmc);
 		val32 &= 0xffffffdf;
-		writel(val32, iTCO_wdt_private.gcs);
+		writel(val32, iTCO_wdt_private.gcs_pmc);
 
-		val32 = readl(iTCO_wdt_private.gcs);
+		val32 = readl(iTCO_wdt_private.gcs_pmc);
 		if (val32 & 0x00000020)
 			ret = -EIO;
 	} else if (iTCO_wdt_private.iTCO_version == 1) {
@@ -192,7 +215,7 @@ static int iTCO_wdt_start(struct watchdog_device *wd_dev)
 
 	/* Force the timer to its reload value by writing to the TCO_RLD
 	   register */
-	if (iTCO_wdt_private.iTCO_version == 2)
+	if (iTCO_wdt_private.iTCO_version >= 2)
 		outw(0x01, TCO_RLD);
 	else if (iTCO_wdt_private.iTCO_version == 1)
 		outb(0x01, TCO_RLD);
@@ -240,9 +263,9 @@ static int iTCO_wdt_ping(struct watchdog_device *wd_dev)
 	iTCO_vendor_pre_keepalive(iTCO_wdt_private.smi_res, wd_dev->timeout);
 
 	/* Reload the timer by writing to the TCO Timer Counter register */
-	if (iTCO_wdt_private.iTCO_version == 2)
+	if (iTCO_wdt_private.iTCO_version >= 2) {
 		outw(0x01, TCO_RLD);
-	else if (iTCO_wdt_private.iTCO_version == 1) {
+	} else if (iTCO_wdt_private.iTCO_version == 1) {
 		/* Reset the timeout status bit so that the timer
 		 * needs to count down twice again before rebooting */
 		outw(0x0008, TCO1_STS);	/* write 1 to clear bit */
@@ -270,14 +293,14 @@ static int iTCO_wdt_set_timeout(struct watchdog_device *wd_dev, unsigned int t)
 	/* "Values of 0h-3h are ignored and should not be attempted" */
 	if (tmrval < 0x04)
 		return -EINVAL;
-	if (((iTCO_wdt_private.iTCO_version == 2) && (tmrval > 0x3ff)) ||
+	if (((iTCO_wdt_private.iTCO_version >= 2) && (tmrval > 0x3ff)) ||
 	    ((iTCO_wdt_private.iTCO_version == 1) && (tmrval > 0x03f)))
 		return -EINVAL;
 
 	iTCO_vendor_pre_set_heartbeat(tmrval);
 
 	/* Write new heartbeat to watchdog */
-	if (iTCO_wdt_private.iTCO_version == 2) {
+	if (iTCO_wdt_private.iTCO_version >= 2) {
 		spin_lock(&iTCO_wdt_private.io_lock);
 		val16 = inw(TCOv2_TMR);
 		val16 &= 0xfc00;
@@ -312,13 +335,13 @@ static unsigned int iTCO_wdt_get_timeleft(struct watchdog_device *wd_dev)
 	unsigned int time_left = 0;
 
 	/* read the TCO Timer */
-	if (iTCO_wdt_private.iTCO_version == 2) {
+	if (iTCO_wdt_private.iTCO_version >= 2) {
 		spin_lock(&iTCO_wdt_private.io_lock);
 		val16 = inw(TCO_RLD);
 		val16 &= 0x3ff;
 		spin_unlock(&iTCO_wdt_private.io_lock);
 
-		time_left = (val16 * 6) / 10;
+		time_left = ticks_to_seconds(val16);
 	} else if (iTCO_wdt_private.iTCO_version == 1) {
 		spin_lock(&iTCO_wdt_private.io_lock);
 		val8 = inb(TCO_RLD);
@@ -327,7 +350,7 @@ static unsigned int iTCO_wdt_get_timeleft(struct watchdog_device *wd_dev)
 			val8 += (inb(TCOv1_TMR) & 0x3f);
 		spin_unlock(&iTCO_wdt_private.io_lock);
 
-		time_left = (val8 * 6) / 10;
+		time_left = ticks_to_seconds(val8);
 	}
 	return time_left;
 }
@@ -376,16 +399,16 @@ static void iTCO_wdt_cleanup(void)
 			resource_size(iTCO_wdt_private.tco_res));
 	release_region(iTCO_wdt_private.smi_res->start,
 			resource_size(iTCO_wdt_private.smi_res));
-	if (iTCO_wdt_private.iTCO_version == 2) {
-		iounmap(iTCO_wdt_private.gcs);
-		release_mem_region(iTCO_wdt_private.gcs_res->start,
-				resource_size(iTCO_wdt_private.gcs_res));
+	if (iTCO_wdt_private.iTCO_version >= 2) {
+		iounmap(iTCO_wdt_private.gcs_pmc);
+		release_mem_region(iTCO_wdt_private.gcs_pmc_res->start,
+				resource_size(iTCO_wdt_private.gcs_pmc_res));
 	}
 
 	iTCO_wdt_private.tco_res = NULL;
 	iTCO_wdt_private.smi_res = NULL;
-	iTCO_wdt_private.gcs_res = NULL;
-	iTCO_wdt_private.gcs = NULL;
+	iTCO_wdt_private.gcs_pmc_res = NULL;
+	iTCO_wdt_private.gcs_pmc = NULL;
 }
 
 static int iTCO_wdt_probe(struct platform_device *dev)
@@ -414,27 +437,27 @@ static int iTCO_wdt_probe(struct platform_device *dev)
 	iTCO_wdt_private.pdev = to_pci_dev(dev->dev.parent);
 
 	/*
-	 * Get the Memory-Mapped GCS register, we need it for the
-	 * NO_REBOOT flag (TCO v2).
+	 * Get the Memory-Mapped GCS or PMC register, we need it for the
+	 * NO_REBOOT flag (TCO v2 and v3).
 	 */
-	if (iTCO_wdt_private.iTCO_version == 2) {
-		iTCO_wdt_private.gcs_res = platform_get_resource(dev,
+	if (iTCO_wdt_private.iTCO_version >= 2) {
+		iTCO_wdt_private.gcs_pmc_res = platform_get_resource(dev,
 							IORESOURCE_MEM,
-							ICH_RES_MEM_GCS);
+							ICH_RES_MEM_GCS_PMC);
 
-		if (!iTCO_wdt_private.gcs_res)
+		if (!iTCO_wdt_private.gcs_pmc_res)
 			goto out;
 
-		if (!request_mem_region(iTCO_wdt_private.gcs_res->start,
-			resource_size(iTCO_wdt_private.gcs_res), dev->name)) {
+		if (!request_mem_region(iTCO_wdt_private.gcs_pmc_res->start,
+			resource_size(iTCO_wdt_private.gcs_pmc_res), dev->name)) {
 			ret = -EBUSY;
 			goto out;
 		}
-		iTCO_wdt_private.gcs = ioremap(iTCO_wdt_private.gcs_res->start,
-			resource_size(iTCO_wdt_private.gcs_res));
-		if (!iTCO_wdt_private.gcs) {
+		iTCO_wdt_private.gcs_pmc = ioremap(iTCO_wdt_private.gcs_pmc_res->start,
+			resource_size(iTCO_wdt_private.gcs_pmc_res));
+		if (!iTCO_wdt_private.gcs_pmc) {
 			ret = -EIO;
-			goto unreg_gcs;
+			goto unreg_gcs_pmc;
 		}
 	}
 
@@ -442,7 +465,7 @@ static int iTCO_wdt_probe(struct platform_device *dev)
 	if (iTCO_wdt_unset_NO_REBOOT_bit() && iTCO_vendor_check_noreboot_on()) {
 		pr_info("unable to reset NO_REBOOT flag, device disabled by hardware/BIOS\n");
 		ret = -ENODEV;	/* Cannot reset NO_REBOOT bit */
-		goto unmap_gcs;
+		goto unmap_gcs_pmc;
 	}
 
 	/* Set the NO_REBOOT bit to prevent later reboots, just for sure */
@@ -454,7 +477,7 @@ static int iTCO_wdt_probe(struct platform_device *dev)
 		pr_err("I/O address 0x%04llx already in use, device disabled\n",
 		       (u64)SMI_EN);
 		ret = -EBUSY;
-		goto unmap_gcs;
+		goto unmap_gcs_pmc;
 	}
 	if (turn_SMI_watchdog_clear_off >= iTCO_wdt_private.iTCO_version) {
 		/*
@@ -478,9 +501,13 @@ static int iTCO_wdt_probe(struct platform_device *dev)
 		ich_info->name, ich_info->iTCO_version, (u64)TCOBASE);
 
 	/* Clear out the (probably old) status */
-	outw(0x0008, TCO1_STS);	/* Clear the Time Out Status bit */
-	outw(0x0002, TCO2_STS);	/* Clear SECOND_TO_STS bit */
-	outw(0x0004, TCO2_STS);	/* Clear BOOT_STS bit */
+	if (iTCO_wdt_private.iTCO_version == 3) {
+		outl(0x20008, TCO1_STS);
+	} else {
+		outw(0x0008, TCO1_STS);	/* Clear the Time Out Status bit */
+		outw(0x0002, TCO2_STS);	/* Clear SECOND_TO_STS bit */
+		outw(0x0004, TCO2_STS);	/* Clear BOOT_STS bit */
+	}
 
 	iTCO_wdt_watchdog_dev.bootstatus = 0;
 	iTCO_wdt_watchdog_dev.timeout = WATCHDOG_TIMEOUT;
@@ -515,18 +542,18 @@ unreg_tco:
 unreg_smi:
 	release_region(iTCO_wdt_private.smi_res->start,
 			resource_size(iTCO_wdt_private.smi_res));
-unmap_gcs:
-	if (iTCO_wdt_private.iTCO_version == 2)
-		iounmap(iTCO_wdt_private.gcs);
-unreg_gcs:
-	if (iTCO_wdt_private.iTCO_version == 2)
-		release_mem_region(iTCO_wdt_private.gcs_res->start,
-				resource_size(iTCO_wdt_private.gcs_res));
+unmap_gcs_pmc:
+	if (iTCO_wdt_private.iTCO_version >= 2)
+		iounmap(iTCO_wdt_private.gcs_pmc);
+unreg_gcs_pmc:
+	if (iTCO_wdt_private.iTCO_version >= 2)
+		release_mem_region(iTCO_wdt_private.gcs_pmc_res->start,
+				resource_size(iTCO_wdt_private.gcs_pmc_res));
 out:
 	iTCO_wdt_private.tco_res = NULL;
 	iTCO_wdt_private.smi_res = NULL;
-	iTCO_wdt_private.gcs_res = NULL;
-	iTCO_wdt_private.gcs = NULL;
+	iTCO_wdt_private.gcs_pmc_res = NULL;
+	iTCO_wdt_private.gcs_pmc = NULL;
 
 	return ret;
 }
-- 
1.7.7.GIT


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

* [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
                   ` (3 preceding siblings ...)
  2014-03-10 21:34 ` [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon Peter Tyser
@ 2014-03-10 21:34 ` Peter Tyser
  2014-03-11  1:07   ` Guenter Roeck
                     ` (2 more replies)
  2014-03-10 21:34 ` [PATCH 7/8] mfd: lpc_ich: Add support for NM10 GPIO Peter Tyser
                   ` (4 subsequent siblings)
  9 siblings, 3 replies; 39+ messages in thread
From: Peter Tyser @ 2014-03-10 21:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Tyser, Guenter Roeck, James Ralston, Samuel Ortiz,
	Lee Jones, Wim Van Sebroeck, linux-watchdog

The register layout of the Avoton is compatible with the iTCO v3
register layout.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Rajat Jain <rajatjain@juniper.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: James Ralston <james.d.ralston@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: linux-watchdog@vger.kernel.org
---
 drivers/mfd/lpc_ich.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index b4bfc58..cb655b3 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -502,7 +502,7 @@ static struct lpc_ich_info lpc_chipset_info[] = {
 	},
 	[LPC_AVN] = {
 		.name = "Avoton SoC",
-		.iTCO_version = 1,
+		.iTCO_version = 3,
 	},
 	[LPC_COLETO] = {
 		.name = "Coleto Creek",
-- 
1.7.7.GIT


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

* [PATCH 7/8] mfd: lpc_ich: Add support for NM10 GPIO
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
                   ` (4 preceding siblings ...)
  2014-03-10 21:34 ` [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3 Peter Tyser
@ 2014-03-10 21:34 ` Peter Tyser
  2014-03-11  1:08   ` Guenter Roeck
  2014-03-13 22:48   ` Lee Jones
  2014-03-10 21:34 ` [PATCH 8/8] mfd: lpc_ich: Add support for Intel Bay Trail SoC Peter Tyser
                   ` (3 subsequent siblings)
  9 siblings, 2 replies; 39+ messages in thread
From: Peter Tyser @ 2014-03-10 21:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Tyser, Guenter Roeck, James Ralston, Samuel Ortiz, Lee Jones

The NM10's GPIO is compatible with ICH v7 GPIO.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Dan Weinlader <danw@vs-networks.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: James Ralston <james.d.ralston@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
---
 drivers/mfd/lpc_ich.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index cb655b3..82d70f7 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -306,6 +306,7 @@ static struct lpc_ich_info lpc_chipset_info[] = {
 	[LPC_NM10] = {
 		.name = "NM10",
 		.iTCO_version = 2,
+		.gpio_version = ICH_V7_GPIO,
 	},
 	[LPC_ICH8] = {
 		.name = "ICH8 or ICH8R",
-- 
1.7.7.GIT


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

* [PATCH 8/8] mfd: lpc_ich: Add support for Intel Bay Trail SoC
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
                   ` (5 preceding siblings ...)
  2014-03-10 21:34 ` [PATCH 7/8] mfd: lpc_ich: Add support for NM10 GPIO Peter Tyser
@ 2014-03-10 21:34 ` Peter Tyser
  2014-03-11  1:09   ` Guenter Roeck
  2014-03-13 22:49   ` Lee Jones
  2014-03-11  0:59 ` [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Guenter Roeck
                   ` (2 subsequent siblings)
  9 siblings, 2 replies; 39+ messages in thread
From: Peter Tyser @ 2014-03-10 21:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Tyser, Guenter Roeck, James Ralston, Samuel Ortiz, Lee Jones

This patch adds the LPC Controller Device IDs for Watchdog and GPIO for
the Intel Bay Trail Atom SoC.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: James Ralston <james.d.ralston@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
---
 drivers/mfd/lpc_ich.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index 82d70f7..6e08ce1 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -214,6 +214,7 @@ enum lpc_chipsets {
 	LPC_LPT_LP,	/* Lynx Point-LP */
 	LPC_WBG,	/* Wellsburg */
 	LPC_AVN,	/* Avoton SoC */
+	LPC_BAYTRAIL,   /* Bay Trail SoC */
 	LPC_COLETO,	/* Coleto Creek */
 	LPC_WPT_LP,	/* Wildcat Point-LP */
 };
@@ -505,6 +506,10 @@ static struct lpc_ich_info lpc_chipset_info[] = {
 		.name = "Avoton SoC",
 		.iTCO_version = 3,
 	},
+	[LPC_BAYTRAIL] = {
+		.name = "Bay Trail SoC",
+		.iTCO_version = 3,
+	},
 	[LPC_COLETO] = {
 		.name = "Coleto Creek",
 		.iTCO_version = 2,
@@ -730,6 +735,7 @@ static const struct pci_device_id lpc_ich_ids[] = {
 	{ PCI_VDEVICE(INTEL, 0x1f39), LPC_AVN},
 	{ PCI_VDEVICE(INTEL, 0x1f3a), LPC_AVN},
 	{ PCI_VDEVICE(INTEL, 0x1f3b), LPC_AVN},
+	{ PCI_VDEVICE(INTEL, 0x0f1c), LPC_BAYTRAIL},
 	{ PCI_VDEVICE(INTEL, 0x2390), LPC_COLETO},
 	{ PCI_VDEVICE(INTEL, 0x9cc1), LPC_WPT_LP},
 	{ PCI_VDEVICE(INTEL, 0x9cc2), LPC_WPT_LP},
-- 
1.7.7.GIT


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

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
                   ` (6 preceding siblings ...)
  2014-03-10 21:34 ` [PATCH 8/8] mfd: lpc_ich: Add support for Intel Bay Trail SoC Peter Tyser
@ 2014-03-11  0:59 ` Guenter Roeck
  2014-03-13 15:16 ` Guenter Roeck
  2014-03-13 22:45 ` Lee Jones
  9 siblings, 0 replies; 39+ messages in thread
From: Guenter Roeck @ 2014-03-11  0:59 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones

On Mon, Mar 10, 2014 at 04:34:51PM -0500, Peter Tyser wrote:
> The original bitmask of 0x10 was incorrect and would result in a write
> to a reserved read-only bit instead of enabling the ACPI I/O
> region.  Update it to the proper value of 0x80.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* Re: [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present
  2014-03-10 21:34 ` [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present Peter Tyser
@ 2014-03-11  0:59   ` Guenter Roeck
  2014-03-13 22:46   ` Lee Jones
  1 sibling, 0 replies; 39+ messages in thread
From: Guenter Roeck @ 2014-03-11  0:59 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones

On Mon, Mar 10, 2014 at 04:34:52PM -0500, Peter Tyser wrote:
> Some chipsets don't currently have GPIO support enabled.  For these
> chipsets don't go through the process of initializing the GPIO region.
> 
> Make the same change for the watchdog initialization for chipsets which
> may not enable the WDT in the future.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* Re: [PATCH 3/8] mfd: lpc_ich: Remove lpc_ich_cfg struct use
  2014-03-10 21:34 ` [PATCH 3/8] mfd: lpc_ich: Remove lpc_ich_cfg struct use Peter Tyser
@ 2014-03-11  0:59   ` Guenter Roeck
  2014-03-13 22:46   ` Lee Jones
  1 sibling, 0 replies; 39+ messages in thread
From: Guenter Roeck @ 2014-03-11  0:59 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones

On Mon, Mar 10, 2014 at 04:34:53PM -0500, Peter Tyser wrote:
> Future chipsets will use different register layouts that don't map
> cleanly to the lpc_ich_cfg fields.  Remove the lpc_ich_cfg struct and
> add explicit fields to the higher level lpc_ich_priv structure.
> 
> This change should have no functional impact.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* Re: [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3
  2014-03-10 21:34 ` [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3 Peter Tyser
@ 2014-03-11  1:02   ` Guenter Roeck
  2014-03-13 22:47   ` Lee Jones
  2014-03-15 20:04   ` Wim Van Sebroeck
  2 siblings, 0 replies; 39+ messages in thread
From: Guenter Roeck @ 2014-03-11  1:02 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones,
	Wim Van Sebroeck, linux-watchdog

On Mon, Mar 10, 2014 at 04:34:54PM -0500, Peter Tyser wrote:
> Some newer Atom CPUs, eg Avoton and Bay Trail, use slightly different
> register layouts for the iTCO than the current v1 and v2 iTCO.
> Differences from previous iTCO versions include:
> - The ACPI space is enabled in the "ACPI base address" register instead
>   of the "ACPI control register"
> 
> - The "no reboot" functionality is set in the "Power Management
>   Configuration" register instead of the "General Control and Status"
>   (GCS) register or PCI configuration space.
> 
> - The "ACPI Control Register" is not present on v3.  The "Power
>   Management Configuration Base Address" register resides at the same
>   address is Avoton/Bay Trail.
> 
> To differentiate these newer chipsets create a new v3 iTCO version and
> update the MFD driver to support them.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* Re: [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon
  2014-03-10 21:34 ` [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon Peter Tyser
@ 2014-03-11  1:06   ` Guenter Roeck
  2014-03-13 22:47   ` Lee Jones
  2014-03-15 20:03   ` Wim Van Sebroeck
  2 siblings, 0 replies; 39+ messages in thread
From: Guenter Roeck @ 2014-03-11  1:06 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones,
	Wim Van Sebroeck, linux-watchdog

On Mon, Mar 10, 2014 at 04:34:55PM -0500, Peter Tyser wrote:
> Some new Atom's, eg Avoton and Bay Trail, have slightly different iTCO
> functionality:
> - The watchdog timer ticks at 1 second instead of .6 seconds
> 
> - Some 8 and 16-bit registers were combined into 32-bit registers
> 
> - Some registers were removed (DAT_IN, DAT_OUT, MESSAGE)
> 
> - The BOOT_STS field in TCO_STS was removed
> 
> - The NO_REBOOT bit is in the PMC area instead of GCS
> 
> Update the driver to support the above changes and bump the version to
> 1.11.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* Re: [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3
  2014-03-10 21:34 ` [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3 Peter Tyser
@ 2014-03-11  1:07   ` Guenter Roeck
  2014-03-13 22:48   ` Lee Jones
  2014-03-15 20:04   ` Wim Van Sebroeck
  2 siblings, 0 replies; 39+ messages in thread
From: Guenter Roeck @ 2014-03-11  1:07 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones,
	Wim Van Sebroeck, linux-watchdog

On Mon, Mar 10, 2014 at 04:34:56PM -0500, Peter Tyser wrote:
> The register layout of the Avoton is compatible with the iTCO v3
> register layout.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* Re: [PATCH 7/8] mfd: lpc_ich: Add support for NM10 GPIO
  2014-03-10 21:34 ` [PATCH 7/8] mfd: lpc_ich: Add support for NM10 GPIO Peter Tyser
@ 2014-03-11  1:08   ` Guenter Roeck
  2014-03-13 22:48   ` Lee Jones
  1 sibling, 0 replies; 39+ messages in thread
From: Guenter Roeck @ 2014-03-11  1:08 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones

On Mon, Mar 10, 2014 at 04:34:57PM -0500, Peter Tyser wrote:
> The NM10's GPIO is compatible with ICH v7 GPIO.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Dan Weinlader <danw@vs-networks.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* Re: [PATCH 8/8] mfd: lpc_ich: Add support for Intel Bay Trail SoC
  2014-03-10 21:34 ` [PATCH 8/8] mfd: lpc_ich: Add support for Intel Bay Trail SoC Peter Tyser
@ 2014-03-11  1:09   ` Guenter Roeck
  2014-03-13 22:49   ` Lee Jones
  1 sibling, 0 replies; 39+ messages in thread
From: Guenter Roeck @ 2014-03-11  1:09 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones

On Mon, Mar 10, 2014 at 04:34:58PM -0500, Peter Tyser wrote:
> This patch adds the LPC Controller Device IDs for Watchdog and GPIO for
> the Intel Bay Trail Atom SoC.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
                   ` (7 preceding siblings ...)
  2014-03-11  0:59 ` [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Guenter Roeck
@ 2014-03-13 15:16 ` Guenter Roeck
  2014-03-13 15:25   ` Lee Jones
  2014-03-13 22:45 ` Lee Jones
  9 siblings, 1 reply; 39+ messages in thread
From: Guenter Roeck @ 2014-03-13 15:16 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, James Ralston, Samuel Ortiz, Lee Jones

On Mon, Mar 10, 2014 at 04:34:51PM -0500, Peter Tyser wrote:
> The original bitmask of 0x10 was incorrect and would result in a write
> to a reserved read-only bit instead of enabling the ACPI I/O
> region.  Update it to the proper value of 0x80.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>

Who is going to pick up this series ?

It should also be noted that Avoton/Rangeley support for the iTCO watchdog
has been broken since Avoton support was introduced in 3.11 and causes either
a system hangup or reboot if enabled with those CPUs. We should either
back-port this series (or at least the patches related to watchdog support)
to the affected kernels, or revert commit 8477128 (Add support for Intel
Avoton SoC).

Guenter

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

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-13 15:16 ` Guenter Roeck
@ 2014-03-13 15:25   ` Lee Jones
  2014-03-13 22:50     ` Lee Jones
  0 siblings, 1 reply; 39+ messages in thread
From: Lee Jones @ 2014-03-13 15:25 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Peter Tyser, linux-kernel, James Ralston, Samuel Ortiz

> > The original bitmask of 0x10 was incorrect and would result in a write
> > to a reserved read-only bit instead of enabling the ACPI I/O
> > region.  Update it to the proper value of 0x80.
> > 
> > Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > Tested-by: Rajat Jain <rajatjain@juniper.net>
> > Cc: Guenter Roeck <linux@roeck-us.net>
> > Cc: James Ralston <james.d.ralston@intel.com>
> > Cc: Samuel Ortiz <sameo@linux.intel.com>
> > Cc: Lee Jones <lee.jones@linaro.org>
> 
> Who is going to pick up this series ?

I will, once I've completed the review.

> It should also be noted that Avoton/Rangeley support for the iTCO watchdog
> has been broken since Avoton support was introduced in 3.11 and causes either
> a system hangup or reboot if enabled with those CPUs. We should either
> back-port this series (or at least the patches related to watchdog support)
> to the affected kernels, or revert commit 8477128 (Add support for Intel
> Avoton SoC).

-- 
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] 39+ messages in thread

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
                   ` (8 preceding siblings ...)
  2014-03-13 15:16 ` Guenter Roeck
@ 2014-03-13 22:45 ` Lee Jones
  9 siblings, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:45 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz

> The original bitmask of 0x10 was incorrect and would result in a write
> to a reserved read-only bit instead of enabling the ACPI I/O
> region.  Update it to the proper value of 0x80.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> ---
>  drivers/mfd/lpc_ich.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied with Guenter's Reviewed-by.

-- 
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] 39+ messages in thread

* Re: [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present
  2014-03-10 21:34 ` [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present Peter Tyser
  2014-03-11  0:59   ` Guenter Roeck
@ 2014-03-13 22:46   ` Lee Jones
  1 sibling, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:46 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz

> Some chipsets don't currently have GPIO support enabled.  For these
> chipsets don't go through the process of initializing the GPIO region.
> 
> Make the same change for the watchdog initialization for chipsets which
> may not enable the WDT in the future.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> ---
>  drivers/mfd/lpc_ich.c |   16 ++++++++++------
>  1 files changed, 10 insertions(+), 6 deletions(-)

Applied with Guenter's Reviewed-by.

-- 
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] 39+ messages in thread

* Re: [PATCH 3/8] mfd: lpc_ich: Remove lpc_ich_cfg struct use
  2014-03-10 21:34 ` [PATCH 3/8] mfd: lpc_ich: Remove lpc_ich_cfg struct use Peter Tyser
  2014-03-11  0:59   ` Guenter Roeck
@ 2014-03-13 22:46   ` Lee Jones
  1 sibling, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:46 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz

> Future chipsets will use different register layouts that don't map
> cleanly to the lpc_ich_cfg fields.  Remove the lpc_ich_cfg struct and
> add explicit fields to the higher level lpc_ich_priv structure.
> 
> This change should have no functional impact.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> ---
>  drivers/mfd/lpc_ich.c |   63 +++++++++++++++++++++++++------------------------
>  1 files changed, 32 insertions(+), 31 deletions(-)

Applied with Guenter's Reviewed-by.

-- 
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] 39+ messages in thread

* Re: [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3
  2014-03-10 21:34 ` [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3 Peter Tyser
  2014-03-11  1:02   ` Guenter Roeck
@ 2014-03-13 22:47   ` Lee Jones
  2014-03-15 20:04   ` Wim Van Sebroeck
  2 siblings, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:47 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz,
	Wim Van Sebroeck, linux-watchdog

> Some newer Atom CPUs, eg Avoton and Bay Trail, use slightly different
> register layouts for the iTCO than the current v1 and v2 iTCO.
> Differences from previous iTCO versions include:
> - The ACPI space is enabled in the "ACPI base address" register instead
>   of the "ACPI control register"
> 
> - The "no reboot" functionality is set in the "Power Management
>   Configuration" register instead of the "General Control and Status"
>   (GCS) register or PCI configuration space.
> 
> - The "ACPI Control Register" is not present on v3.  The "Power
>   Management Configuration Base Address" register resides at the same
>   address is Avoton/Bay Trail.
> 
> To differentiate these newer chipsets create a new v3 iTCO version and
> update the MFD driver to support them.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org
> ---
>  drivers/mfd/lpc_ich.c       |   81 +++++++++++++++++++++++++++++++++++-------
>  include/linux/mfd/lpc_ich.h |    8 ++--
>  2 files changed, 71 insertions(+), 18 deletions(-)

Applied with Guenter's Reviewed-by.

-- 
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] 39+ messages in thread

* Re: [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon
  2014-03-10 21:34 ` [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon Peter Tyser
  2014-03-11  1:06   ` Guenter Roeck
@ 2014-03-13 22:47   ` Lee Jones
  2014-03-15 20:03   ` Wim Van Sebroeck
  2 siblings, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:47 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz,
	Wim Van Sebroeck, linux-watchdog

> Some new Atom's, eg Avoton and Bay Trail, have slightly different iTCO
> functionality:
> - The watchdog timer ticks at 1 second instead of .6 seconds
> 
> - Some 8 and 16-bit registers were combined into 32-bit registers
> 
> - Some registers were removed (DAT_IN, DAT_OUT, MESSAGE)
> 
> - The BOOT_STS field in TCO_STS was removed
> 
> - The NO_REBOOT bit is in the PMC area instead of GCS
> 
> Update the driver to support the above changes and bump the version to
> 1.11.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org
> ---
>  drivers/watchdog/iTCO_wdt.c |  137 ++++++++++++++++++++++++++-----------------
>  1 files changed, 82 insertions(+), 55 deletions(-)

Applied with Guenter's Reviewed-by.

-- 
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] 39+ messages in thread

* Re: [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3
  2014-03-10 21:34 ` [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3 Peter Tyser
  2014-03-11  1:07   ` Guenter Roeck
@ 2014-03-13 22:48   ` Lee Jones
  2014-03-15 20:04   ` Wim Van Sebroeck
  2 siblings, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:48 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz,
	Wim Van Sebroeck, linux-watchdog

> The register layout of the Avoton is compatible with the iTCO v3
> register layout.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org
> ---
>  drivers/mfd/lpc_ich.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied with Guenter's Reviewed-by.

-- 
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] 39+ messages in thread

* Re: [PATCH 7/8] mfd: lpc_ich: Add support for NM10 GPIO
  2014-03-10 21:34 ` [PATCH 7/8] mfd: lpc_ich: Add support for NM10 GPIO Peter Tyser
  2014-03-11  1:08   ` Guenter Roeck
@ 2014-03-13 22:48   ` Lee Jones
  1 sibling, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:48 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz

> The NM10's GPIO is compatible with ICH v7 GPIO.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Dan Weinlader <danw@vs-networks.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> ---
>  drivers/mfd/lpc_ich.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Applied with Guenter's Reviewed-by.

-- 
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] 39+ messages in thread

* Re: [PATCH 8/8] mfd: lpc_ich: Add support for Intel Bay Trail SoC
  2014-03-10 21:34 ` [PATCH 8/8] mfd: lpc_ich: Add support for Intel Bay Trail SoC Peter Tyser
  2014-03-11  1:09   ` Guenter Roeck
@ 2014-03-13 22:49   ` Lee Jones
  1 sibling, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:49 UTC (permalink / raw)
  To: Peter Tyser; +Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz

> This patch adds the LPC Controller Device IDs for Watchdog and GPIO for
> the Intel Bay Trail Atom SoC.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> ---
>  drivers/mfd/lpc_ich.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)

Applied with Guenter's Reviewed-by.

-- 
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] 39+ messages in thread

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-13 15:25   ` Lee Jones
@ 2014-03-13 22:50     ` Lee Jones
  2014-03-13 23:04       ` Guenter Roeck
  0 siblings, 1 reply; 39+ messages in thread
From: Lee Jones @ 2014-03-13 22:50 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Peter Tyser, linux-kernel, James Ralston, Samuel Ortiz

> > > The original bitmask of 0x10 was incorrect and would result in a write
> > > to a reserved read-only bit instead of enabling the ACPI I/O
> > > region.  Update it to the proper value of 0x80.
> > > 
> > > Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > > Tested-by: Rajat Jain <rajatjain@juniper.net>
> > > Cc: Guenter Roeck <linux@roeck-us.net>
> > > Cc: James Ralston <james.d.ralston@intel.com>
> > > Cc: Samuel Ortiz <sameo@linux.intel.com>
> > > Cc: Lee Jones <lee.jones@linaro.org>
> > 
> > Who is going to pick up this series ?
> 
> I will, once I've completed the review.

Okay review complete, phew!

Guenter, How do you want to play this? Do you want me to create an
immutable branch for you to pull from?

-- 
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] 39+ messages in thread

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-13 22:50     ` Lee Jones
@ 2014-03-13 23:04       ` Guenter Roeck
  2014-03-14 10:29         ` Lee Jones
  0 siblings, 1 reply; 39+ messages in thread
From: Guenter Roeck @ 2014-03-13 23:04 UTC (permalink / raw)
  To: Lee Jones; +Cc: Peter Tyser, linux-kernel, James Ralston, Samuel Ortiz

On 03/13/2014 03:50 PM, Lee Jones wrote:
>>>> The original bitmask of 0x10 was incorrect and would result in a write
>>>> to a reserved read-only bit instead of enabling the ACPI I/O
>>>> region.  Update it to the proper value of 0x80.
>>>>
>>>> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
>>>> Tested-by: Rajat Jain <rajatjain@juniper.net>
>>>> Cc: Guenter Roeck <linux@roeck-us.net>
>>>> Cc: James Ralston <james.d.ralston@intel.com>
>>>> Cc: Samuel Ortiz <sameo@linux.intel.com>
>>>> Cc: Lee Jones <lee.jones@linaro.org>
>>>
>>> Who is going to pick up this series ?
>>
>> I will, once I've completed the review.
>
> Okay review complete, phew!
>
> Guenter, How do you want to play this? Do you want me to create an
> immutable branch for you to pull from?
>

I'll be happy if I can pull it from -next. Is it going to be there
anytime soon ?

Thanks,
Guenter


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

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-13 23:04       ` Guenter Roeck
@ 2014-03-14 10:29         ` Lee Jones
  2014-03-19 17:17           ` Guenter Roeck
  0 siblings, 1 reply; 39+ messages in thread
From: Lee Jones @ 2014-03-14 10:29 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Peter Tyser, linux-kernel, James Ralston, Samuel Ortiz

> >>>>The original bitmask of 0x10 was incorrect and would result in a write
> >>>>to a reserved read-only bit instead of enabling the ACPI I/O
> >>>>region.  Update it to the proper value of 0x80.
> >>>>
> >>>>Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> >>>>Tested-by: Rajat Jain <rajatjain@juniper.net>
> >>>>Cc: Guenter Roeck <linux@roeck-us.net>
> >>>>Cc: James Ralston <james.d.ralston@intel.com>
> >>>>Cc: Samuel Ortiz <sameo@linux.intel.com>
> >>>>Cc: Lee Jones <lee.jones@linaro.org>
> >>>
> >>>Who is going to pick up this series ?
> >>
> >>I will, once I've completed the review.
> >
> >Okay review complete, phew!
> >
> >Guenter, How do you want to play this? Do you want me to create an
> >immutable branch for you to pull from?
> >
> 
> I'll be happy if I can pull it from -next. Is it going to be there
> anytime soon ?

Well I pushed an updated version of the MFD today, so it should appear
in -next this evening.

-- 
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] 39+ messages in thread

* Re: [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon
  2014-03-10 21:34 ` [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon Peter Tyser
  2014-03-11  1:06   ` Guenter Roeck
  2014-03-13 22:47   ` Lee Jones
@ 2014-03-15 20:03   ` Wim Van Sebroeck
  2014-03-18  8:28     ` Lee Jones
  2 siblings, 1 reply; 39+ messages in thread
From: Wim Van Sebroeck @ 2014-03-15 20:03 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz,
	Lee Jones, linux-watchdog

Hi Peter,

> Some new Atom's, eg Avoton and Bay Trail, have slightly different iTCO
> functionality:
> - The watchdog timer ticks at 1 second instead of .6 seconds
> 
> - Some 8 and 16-bit registers were combined into 32-bit registers
> 
> - Some registers were removed (DAT_IN, DAT_OUT, MESSAGE)
> 
> - The BOOT_STS field in TCO_STS was removed
> 
> - The NO_REBOOT bit is in the PMC area instead of GCS
> 
> Update the driver to support the above changes and bump the version to
> 1.11.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

Kind regards,
Wim.


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

* Re: [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3
  2014-03-10 21:34 ` [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3 Peter Tyser
  2014-03-11  1:02   ` Guenter Roeck
  2014-03-13 22:47   ` Lee Jones
@ 2014-03-15 20:04   ` Wim Van Sebroeck
  2 siblings, 0 replies; 39+ messages in thread
From: Wim Van Sebroeck @ 2014-03-15 20:04 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz,
	Lee Jones, linux-watchdog

Hi Peter,

> Some newer Atom CPUs, eg Avoton and Bay Trail, use slightly different
> register layouts for the iTCO than the current v1 and v2 iTCO.
> Differences from previous iTCO versions include:
> - The ACPI space is enabled in the "ACPI base address" register instead
>   of the "ACPI control register"
> 
> - The "no reboot" functionality is set in the "Power Management
>   Configuration" register instead of the "General Control and Status"
>   (GCS) register or PCI configuration space.
> 
> - The "ACPI Control Register" is not present on v3.  The "Power
>   Management Configuration Base Address" register resides at the same
>   address is Avoton/Bay Trail.
> 
> To differentiate these newer chipsets create a new v3 iTCO version and
> update the MFD driver to support them.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org
> ---
>  drivers/mfd/lpc_ich.c       |   81 +++++++++++++++++++++++++++++++++++-------
>  include/linux/mfd/lpc_ich.h |    8 ++--
>  2 files changed, 71 insertions(+), 18 deletions(-)
> 

Acked-by: Wim Van Sebroeck <wim@iguana.be>

Kind regards,
Wim.


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

* Re: [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3
  2014-03-10 21:34 ` [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3 Peter Tyser
  2014-03-11  1:07   ` Guenter Roeck
  2014-03-13 22:48   ` Lee Jones
@ 2014-03-15 20:04   ` Wim Van Sebroeck
  2014-03-18  8:27     ` Lee Jones
  2 siblings, 1 reply; 39+ messages in thread
From: Wim Van Sebroeck @ 2014-03-15 20:04 UTC (permalink / raw)
  To: Peter Tyser
  Cc: linux-kernel, Guenter Roeck, James Ralston, Samuel Ortiz,
	Lee Jones, linux-watchdog

Hi Peter,

> The register layout of the Avoton is compatible with the iTCO v3
> register layout.
> 
> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Rajat Jain <rajatjain@juniper.net>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: James Ralston <james.d.ralston@intel.com>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> Cc: linux-watchdog@vger.kernel.org
> ---
>  drivers/mfd/lpc_ich.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 

Acked-by: Wim Van Sebroeck <wim@iguana.be>

Kind regards,
Wim.


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

* Re: [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3
  2014-03-15 20:04   ` Wim Van Sebroeck
@ 2014-03-18  8:27     ` Lee Jones
  2014-03-18 14:00       ` Wim Van Sebroeck
  0 siblings, 1 reply; 39+ messages in thread
From: Lee Jones @ 2014-03-18  8:27 UTC (permalink / raw)
  To: Wim Van Sebroeck
  Cc: Peter Tyser, linux-kernel, Guenter Roeck, James Ralston,
	Samuel Ortiz, linux-watchdog

> > The register layout of the Avoton is compatible with the iTCO v3
> > register layout.
> > 
> > Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > Tested-by: Rajat Jain <rajatjain@juniper.net>
> > Cc: Guenter Roeck <linux@roeck-us.net>
> > Cc: James Ralston <james.d.ralston@intel.com>
> > Cc: Samuel Ortiz <sameo@linux.intel.com>
> > Cc: Lee Jones <lee.jones@linaro.org>
> > Cc: Wim Van Sebroeck <wim@iguana.be>
> > Cc: linux-watchdog@vger.kernel.org
> > ---
> >  drivers/mfd/lpc_ich.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> Acked-by: Wim Van Sebroeck <wim@iguana.be>

Acking patches two days after they've already been applied, it seldom
helpful.

-- 
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] 39+ messages in thread

* Re: [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon
  2014-03-15 20:03   ` Wim Van Sebroeck
@ 2014-03-18  8:28     ` Lee Jones
  2014-03-18 13:59       ` Wim Van Sebroeck
  0 siblings, 1 reply; 39+ messages in thread
From: Lee Jones @ 2014-03-18  8:28 UTC (permalink / raw)
  To: Wim Van Sebroeck
  Cc: Peter Tyser, linux-kernel, Guenter Roeck, James Ralston,
	Samuel Ortiz, linux-watchdog

> > Some new Atom's, eg Avoton and Bay Trail, have slightly different iTCO
> > functionality:
> > - The watchdog timer ticks at 1 second instead of .6 seconds
> > 
> > - Some 8 and 16-bit registers were combined into 32-bit registers
> > 
> > - Some registers were removed (DAT_IN, DAT_OUT, MESSAGE)
> > 
> > - The BOOT_STS field in TCO_STS was removed
> > 
> > - The NO_REBOOT bit is in the PMC area instead of GCS
> > 
> > Update the driver to support the above changes and bump the version to
> > 1.11.
> > 
> > Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > Tested-by: Rajat Jain <rajatjain@juniper.net>
> > Cc: Guenter Roeck <linux@roeck-us.net>
> > Cc: James Ralston <james.d.ralston@intel.com>
> > Cc: Samuel Ortiz <sameo@linux.intel.com>
> > Cc: Lee Jones <lee.jones@linaro.org>
> > Cc: Wim Van Sebroeck <wim@iguana.be>
> > Cc: linux-watchdog@vger.kernel.org
> 
> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

Why Signed-off-by?

-- 
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] 39+ messages in thread

* Re: [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon
  2014-03-18  8:28     ` Lee Jones
@ 2014-03-18 13:59       ` Wim Van Sebroeck
  2014-03-18 20:36         ` Lee Jones
  0 siblings, 1 reply; 39+ messages in thread
From: Wim Van Sebroeck @ 2014-03-18 13:59 UTC (permalink / raw)
  To: Lee Jones
  Cc: Peter Tyser, linux-kernel, Guenter Roeck, James Ralston,
	Samuel Ortiz, linux-watchdog

Hi Lee,

> > > Some new Atom's, eg Avoton and Bay Trail, have slightly different iTCO
> > > functionality:
> > > - The watchdog timer ticks at 1 second instead of .6 seconds
> > > 
> > > - Some 8 and 16-bit registers were combined into 32-bit registers
> > > 
> > > - Some registers were removed (DAT_IN, DAT_OUT, MESSAGE)
> > > 
> > > - The BOOT_STS field in TCO_STS was removed
> > > 
> > > - The NO_REBOOT bit is in the PMC area instead of GCS
> > > 
> > > Update the driver to support the above changes and bump the version to
> > > 1.11.
> > > 
> > > Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > > Tested-by: Rajat Jain <rajatjain@juniper.net>
> > > Cc: Guenter Roeck <linux@roeck-us.net>
> > > Cc: James Ralston <james.d.ralston@intel.com>
> > > Cc: Samuel Ortiz <sameo@linux.intel.com>
> > > Cc: Lee Jones <lee.jones@linaro.org>
> > > Cc: Wim Van Sebroeck <wim@iguana.be>
> > > Cc: linux-watchdog@vger.kernel.org
> > 
> > Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
> 
> Why Signed-off-by?

1) I'm the author of iTCO_wdt.
2) I'm tha maintainer of the watchdog device drivers.

Wim.


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

* Re: [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3
  2014-03-18  8:27     ` Lee Jones
@ 2014-03-18 14:00       ` Wim Van Sebroeck
  0 siblings, 0 replies; 39+ messages in thread
From: Wim Van Sebroeck @ 2014-03-18 14:00 UTC (permalink / raw)
  To: Lee Jones
  Cc: Peter Tyser, linux-kernel, Guenter Roeck, James Ralston,
	Samuel Ortiz, linux-watchdog

Hi Len,

> > > The register layout of the Avoton is compatible with the iTCO v3
> > > register layout.
> > > 
> > > Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > > Tested-by: Rajat Jain <rajatjain@juniper.net>
> > > Cc: Guenter Roeck <linux@roeck-us.net>
> > > Cc: James Ralston <james.d.ralston@intel.com>
> > > Cc: Samuel Ortiz <sameo@linux.intel.com>
> > > Cc: Lee Jones <lee.jones@linaro.org>
> > > Cc: Wim Van Sebroeck <wim@iguana.be>
> > > Cc: linux-watchdog@vger.kernel.org
> > > ---
> > >  drivers/mfd/lpc_ich.c |    2 +-
> > >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > Acked-by: Wim Van Sebroeck <wim@iguana.be>
> 
> Acking patches two days after they've already been applied, it seldom
> helpful.

Giving this feedback neither.

Wim.


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

* Re: [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon
  2014-03-18 13:59       ` Wim Van Sebroeck
@ 2014-03-18 20:36         ` Lee Jones
  0 siblings, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-18 20:36 UTC (permalink / raw)
  To: Wim Van Sebroeck
  Cc: Peter Tyser, linux-kernel, Guenter Roeck, James Ralston,
	Samuel Ortiz, linux-watchdog

> > > > Some new Atom's, eg Avoton and Bay Trail, have slightly different iTCO
> > > > functionality:
> > > > - The watchdog timer ticks at 1 second instead of .6 seconds
> > > > 
> > > > - Some 8 and 16-bit registers were combined into 32-bit registers
> > > > 
> > > > - Some registers were removed (DAT_IN, DAT_OUT, MESSAGE)
> > > > 
> > > > - The BOOT_STS field in TCO_STS was removed
> > > > 
> > > > - The NO_REBOOT bit is in the PMC area instead of GCS
> > > > 
> > > > Update the driver to support the above changes and bump the version to
> > > > 1.11.
> > > > 
> > > > Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > > > Tested-by: Rajat Jain <rajatjain@juniper.net>
> > > > Cc: Guenter Roeck <linux@roeck-us.net>
> > > > Cc: James Ralston <james.d.ralston@intel.com>
> > > > Cc: Samuel Ortiz <sameo@linux.intel.com>
> > > > Cc: Lee Jones <lee.jones@linaro.org>
> > > > Cc: Wim Van Sebroeck <wim@iguana.be>
> > > > Cc: linux-watchdog@vger.kernel.org
> > > 
> > > Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
> > 
> > Why Signed-off-by?
> 
> 1) I'm the author of iTCO_wdt.
> 2) I'm tha maintainer of the watchdog device drivers.

But you're not the author of this patch, or in the code path.

-- 
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] 39+ messages in thread

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-14 10:29         ` Lee Jones
@ 2014-03-19 17:17           ` Guenter Roeck
  2014-03-19 21:47             ` Lee Jones
  0 siblings, 1 reply; 39+ messages in thread
From: Guenter Roeck @ 2014-03-19 17:17 UTC (permalink / raw)
  To: Lee Jones; +Cc: Peter Tyser, linux-kernel, James Ralston, Samuel Ortiz

On Fri, Mar 14, 2014 at 10:29:34AM +0000, Lee Jones wrote:
> > >>>>The original bitmask of 0x10 was incorrect and would result in a write
> > >>>>to a reserved read-only bit instead of enabling the ACPI I/O
> > >>>>region.  Update it to the proper value of 0x80.
> > >>>>
> > >>>>Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > >>>>Tested-by: Rajat Jain <rajatjain@juniper.net>
> > >>>>Cc: Guenter Roeck <linux@roeck-us.net>
> > >>>>Cc: James Ralston <james.d.ralston@intel.com>
> > >>>>Cc: Samuel Ortiz <sameo@linux.intel.com>
> > >>>>Cc: Lee Jones <lee.jones@linaro.org>
> > >>>
> > >>>Who is going to pick up this series ?
> > >>
> > >>I will, once I've completed the review.
> > >
> > >Okay review complete, phew!
> > >
> > >Guenter, How do you want to play this? Do you want me to create an
> > >immutable branch for you to pull from?
> > >
> > 
> > I'll be happy if I can pull it from -next. Is it going to be there
> > anytime soon ?
> 
> Well I pushed an updated version of the MFD today, so it should appear
> in -next this evening.
> 
Hi Lee,

for some reason I still don't see the patches in linux-next, even though I see
them in your mfd-next branch. Any idea what is happening ? Is it possible
that Stephen picks up a different mfd-next tree ?

Thanks,
Guenter

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

* Re: [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask
  2014-03-19 17:17           ` Guenter Roeck
@ 2014-03-19 21:47             ` Lee Jones
  0 siblings, 0 replies; 39+ messages in thread
From: Lee Jones @ 2014-03-19 21:47 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Peter Tyser, linux-kernel, James Ralston, Samuel Ortiz

> > > >>>>The original bitmask of 0x10 was incorrect and would result in a write
> > > >>>>to a reserved read-only bit instead of enabling the ACPI I/O
> > > >>>>region.  Update it to the proper value of 0x80.
> > > >>>>
> > > >>>>Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > > >>>>Tested-by: Rajat Jain <rajatjain@juniper.net>
> > > >>>>Cc: Guenter Roeck <linux@roeck-us.net>
> > > >>>>Cc: James Ralston <james.d.ralston@intel.com>
> > > >>>>Cc: Samuel Ortiz <sameo@linux.intel.com>
> > > >>>>Cc: Lee Jones <lee.jones@linaro.org>
> > > >>>
> > > >>>Who is going to pick up this series ?
> > > >>
> > > >>I will, once I've completed the review.
> > > >
> > > >Okay review complete, phew!
> > > >
> > > >Guenter, How do you want to play this? Do you want me to create an
> > > >immutable branch for you to pull from?
> > > >
> > > 
> > > I'll be happy if I can pull it from -next. Is it going to be there
> > > anytime soon ?
> > 
> > Well I pushed an updated version of the MFD today, so it should appear
> > in -next this evening.
> > 
> Hi Lee,
> 
> for some reason I still don't see the patches in linux-next, even though I see
> them in your mfd-next branch. Any idea what is happening ? Is it possible
> that Stephen picks up a different mfd-next tree ?

Yes, that's exactly what was happening.

I emailed Stephen a few hours ago to rectify the situation.

-- 
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] 39+ messages in thread

end of thread, other threads:[~2014-03-19 21:47 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-10 21:34 [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Peter Tyser
2014-03-10 21:34 ` [PATCH 2/8] mfd: lpc_ich: Only configure watchdog or GPIO when present Peter Tyser
2014-03-11  0:59   ` Guenter Roeck
2014-03-13 22:46   ` Lee Jones
2014-03-10 21:34 ` [PATCH 3/8] mfd: lpc_ich: Remove lpc_ich_cfg struct use Peter Tyser
2014-03-11  0:59   ` Guenter Roeck
2014-03-13 22:46   ` Lee Jones
2014-03-10 21:34 ` [PATCH 4/8] mfd: lpc_ich: Add support for iTCO v3 Peter Tyser
2014-03-11  1:02   ` Guenter Roeck
2014-03-13 22:47   ` Lee Jones
2014-03-15 20:04   ` Wim Van Sebroeck
2014-03-10 21:34 ` [PATCH 5/8] watchdog: iTCO_wdt: Add support for v3 silicon Peter Tyser
2014-03-11  1:06   ` Guenter Roeck
2014-03-13 22:47   ` Lee Jones
2014-03-15 20:03   ` Wim Van Sebroeck
2014-03-18  8:28     ` Lee Jones
2014-03-18 13:59       ` Wim Van Sebroeck
2014-03-18 20:36         ` Lee Jones
2014-03-10 21:34 ` [PATCH 6/8] mfd: lpc_ich: Change Avoton to iTCO v3 Peter Tyser
2014-03-11  1:07   ` Guenter Roeck
2014-03-13 22:48   ` Lee Jones
2014-03-15 20:04   ` Wim Van Sebroeck
2014-03-18  8:27     ` Lee Jones
2014-03-18 14:00       ` Wim Van Sebroeck
2014-03-10 21:34 ` [PATCH 7/8] mfd: lpc_ich: Add support for NM10 GPIO Peter Tyser
2014-03-11  1:08   ` Guenter Roeck
2014-03-13 22:48   ` Lee Jones
2014-03-10 21:34 ` [PATCH 8/8] mfd: lpc_ich: Add support for Intel Bay Trail SoC Peter Tyser
2014-03-11  1:09   ` Guenter Roeck
2014-03-13 22:49   ` Lee Jones
2014-03-11  0:59 ` [PATCH 1/8] mfd: lpc_ich: Fix ACPI enable bitmask Guenter Roeck
2014-03-13 15:16 ` Guenter Roeck
2014-03-13 15:25   ` Lee Jones
2014-03-13 22:50     ` Lee Jones
2014-03-13 23:04       ` Guenter Roeck
2014-03-14 10:29         ` Lee Jones
2014-03-19 17:17           ` Guenter Roeck
2014-03-19 21:47             ` Lee Jones
2014-03-13 22:45 ` Lee Jones

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.