All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpiolib: append SFI helpers for GPIO API
@ 2013-10-17  3:03 ` David Cohen
  0 siblings, 0 replies; 12+ messages in thread
From: David Cohen @ 2013-10-17  3:03 UTC (permalink / raw)
  To: linux-kernel, sfi-devel, linux-gpio
  Cc: Andy Shevchenko, Kuppuswamy Sathyanarayanan, David Cohen,
	Linus Walleij, Len Brown

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

To support some (legacy) firmwares and platforms let's make life easier for
their customers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: David Cohen <david.a.cohen@linux.intel.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Len Brown <lenb@kernel.org>
---
 drivers/gpio/Kconfig       |  4 +++
 drivers/gpio/Makefile      |  1 +
 drivers/gpio/gpiolib-sfi.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/sfi/sfi_core.c     |  7 +++++
 include/linux/sfi_gpio.h   | 27 ++++++++++++++++
 5 files changed, 115 insertions(+)
 create mode 100644 drivers/gpio/gpiolib-sfi.c
 create mode 100644 include/linux/sfi_gpio.h

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 3471962..3fa2a0d 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -51,6 +51,10 @@ config OF_GPIO
 	def_bool y
 	depends on OF
 
+config GPIO_SFI
+	def_bool y
+	depends on SFI
+
 config GPIO_ACPI
 	def_bool y
 	depends on ACPI
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index f951866..d548ff3 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -5,6 +5,7 @@ ccflags-$(CONFIG_DEBUG_GPIO)	+= -DDEBUG
 obj-$(CONFIG_GPIO_DEVRES)	+= devres.o
 obj-$(CONFIG_GPIOLIB)		+= gpiolib.o
 obj-$(CONFIG_OF_GPIO)		+= gpiolib-of.o
+obj-$(CONFIG_GPIO_SFI)		+= gpiolib-sfi.o
 obj-$(CONFIG_GPIO_ACPI)		+= gpiolib-acpi.o
 
 # Device drivers. Generally keep list sorted alphabetically
diff --git a/drivers/gpio/gpiolib-sfi.c b/drivers/gpio/gpiolib-sfi.c
new file mode 100644
index 0000000..2f15a81
--- /dev/null
+++ b/drivers/gpio/gpiolib-sfi.c
@@ -0,0 +1,76 @@
+/*
+ * SFI helpers for GPIO API
+ *
+ * Copyright (C) 2013, Intel Corporation
+ * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+ *
+ * Based on work done for Intel MID platforms (mrst.c)
+ *
+ * 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.
+ */
+
+#define pr_fmt(fmt) "SFI: GPIO: " fmt
+
+#include <linux/errno.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linux/slab.h>
+#include <linux/gpio.h>
+#include <linux/export.h>
+#include <linux/sfi_gpio.h>
+#include <linux/sfi.h>
+
+static struct sfi_gpio_table_entry *sfi_gpio_table;
+static int sfi_gpio_num_entry;
+
+int sfi_get_gpio_by_name(const char *name)
+{
+	struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
+	int i;
+
+	if (!pentry)
+		return -1;
+
+	for (i = 0; i < sfi_gpio_num_entry; i++, pentry++) {
+		if (!strncmp(name, pentry->pin_name, SFI_NAME_LEN))
+			return pentry->pin_no;
+	}
+
+	return -1;
+}
+EXPORT_SYMBOL_GPL(sfi_get_gpio_by_name);
+
+static int __init sfi_gpio_parse(struct sfi_table_header *table)
+{
+	struct sfi_table_simple *sb = (struct sfi_table_simple *)table;
+	struct sfi_gpio_table_entry *pentry;
+	int num, i;
+
+	if (sfi_gpio_table)
+		return 0;
+
+	num = SFI_GET_NUM_ENTRIES(sb, struct sfi_gpio_table_entry);
+	pentry = (struct sfi_gpio_table_entry *)sb->pentry;
+
+	sfi_gpio_table = kmalloc(num * sizeof(*pentry), GFP_KERNEL);
+	if (!sfi_gpio_table)
+		return -ENOMEM;
+
+	memcpy(sfi_gpio_table, pentry, num * sizeof(*pentry));
+	sfi_gpio_num_entry = num;
+
+	pr_debug("Pin info:\n");
+	for (i = 0; i < num; i++, pentry++)
+		pr_debug("[%2d] chip = %16.16s, name = %16.16s, pin=%d\n", i,
+			 pentry->controller_name, pentry->pin_name,
+			 pentry->pin_no);
+
+	return 0;
+}
+
+int __init sfi_gpio_init(void)
+{
+	return sfi_table_parse(SFI_SIG_GPIO, NULL, NULL, sfi_gpio_parse);
+}
diff --git a/drivers/sfi/sfi_core.c b/drivers/sfi/sfi_core.c
index 296db7a..2828da0 100644
--- a/drivers/sfi/sfi_core.c
+++ b/drivers/sfi/sfi_core.c
@@ -67,6 +67,7 @@
 #include <linux/acpi.h>
 #include <linux/init.h>
 #include <linux/sfi.h>
+#include <linux/sfi_gpio.h>
 #include <linux/slab.h>
 
 #include "sfi_core.h"
@@ -512,6 +513,12 @@ void __init sfi_init_late(void)
 	syst_va = sfi_map_memory(syst_pa, length);
 
 	sfi_acpi_init();
+
+	/*
+	 * Parsing GPIO table first, since the DEVS table will need this table
+	 * to map the pin name to the actual pin.
+	 */
+	sfi_gpio_init();
 }
 
 /*
diff --git a/include/linux/sfi_gpio.h b/include/linux/sfi_gpio.h
new file mode 100644
index 0000000..ef7e497
--- /dev/null
+++ b/include/linux/sfi_gpio.h
@@ -0,0 +1,27 @@
+#ifndef _LINUX_SFI_GPIO_H_
+#define _LINUX_SFI_GPIO_H_
+
+#include <linux/errno.h>
+#include <linux/gpio.h>
+#include <linux/sfi.h>
+
+#ifdef CONFIG_GPIO_SFI
+
+int sfi_get_gpio_by_name(const char *name);
+int __init sfi_gpio_init(void);
+
+#else /* CONFIG_GPIO_SFI */
+
+static inline int sfi_get_gpio_by_name(const char *name);
+{
+	return -1;
+}
+
+static inline int __init sfi_gpio_init(void)
+{
+	return -ENODEV;
+}
+
+#endif /* CONFIG_GPIO_SFI */
+
+#endif /* _LINUX_SFI_GPIO_H_ */
-- 
1.8.4.rc3

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

* [PATCH] gpiolib: append SFI helpers for GPIO API
@ 2013-10-17  3:03 ` David Cohen
  0 siblings, 0 replies; 12+ messages in thread
From: David Cohen @ 2013-10-17  3:03 UTC (permalink / raw)
  To: linux-kernel, sfi-devel, linux-gpio
  Cc: Andy Shevchenko, Kuppuswamy Sathyanarayanan, David Cohen,
	Linus Walleij, Len Brown

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

To support some (legacy) firmwares and platforms let's make life easier for
their customers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: David Cohen <david.a.cohen@linux.intel.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Len Brown <lenb@kernel.org>
---
 drivers/gpio/Kconfig       |  4 +++
 drivers/gpio/Makefile      |  1 +
 drivers/gpio/gpiolib-sfi.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/sfi/sfi_core.c     |  7 +++++
 include/linux/sfi_gpio.h   | 27 ++++++++++++++++
 5 files changed, 115 insertions(+)
 create mode 100644 drivers/gpio/gpiolib-sfi.c
 create mode 100644 include/linux/sfi_gpio.h

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 3471962..3fa2a0d 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -51,6 +51,10 @@ config OF_GPIO
 	def_bool y
 	depends on OF
 
+config GPIO_SFI
+	def_bool y
+	depends on SFI
+
 config GPIO_ACPI
 	def_bool y
 	depends on ACPI
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index f951866..d548ff3 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -5,6 +5,7 @@ ccflags-$(CONFIG_DEBUG_GPIO)	+= -DDEBUG
 obj-$(CONFIG_GPIO_DEVRES)	+= devres.o
 obj-$(CONFIG_GPIOLIB)		+= gpiolib.o
 obj-$(CONFIG_OF_GPIO)		+= gpiolib-of.o
+obj-$(CONFIG_GPIO_SFI)		+= gpiolib-sfi.o
 obj-$(CONFIG_GPIO_ACPI)		+= gpiolib-acpi.o
 
 # Device drivers. Generally keep list sorted alphabetically
diff --git a/drivers/gpio/gpiolib-sfi.c b/drivers/gpio/gpiolib-sfi.c
new file mode 100644
index 0000000..2f15a81
--- /dev/null
+++ b/drivers/gpio/gpiolib-sfi.c
@@ -0,0 +1,76 @@
+/*
+ * SFI helpers for GPIO API
+ *
+ * Copyright (C) 2013, Intel Corporation
+ * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+ *
+ * Based on work done for Intel MID platforms (mrst.c)
+ *
+ * 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.
+ */
+
+#define pr_fmt(fmt) "SFI: GPIO: " fmt
+
+#include <linux/errno.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linux/slab.h>
+#include <linux/gpio.h>
+#include <linux/export.h>
+#include <linux/sfi_gpio.h>
+#include <linux/sfi.h>
+
+static struct sfi_gpio_table_entry *sfi_gpio_table;
+static int sfi_gpio_num_entry;
+
+int sfi_get_gpio_by_name(const char *name)
+{
+	struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
+	int i;
+
+	if (!pentry)
+		return -1;
+
+	for (i = 0; i < sfi_gpio_num_entry; i++, pentry++) {
+		if (!strncmp(name, pentry->pin_name, SFI_NAME_LEN))
+			return pentry->pin_no;
+	}
+
+	return -1;
+}
+EXPORT_SYMBOL_GPL(sfi_get_gpio_by_name);
+
+static int __init sfi_gpio_parse(struct sfi_table_header *table)
+{
+	struct sfi_table_simple *sb = (struct sfi_table_simple *)table;
+	struct sfi_gpio_table_entry *pentry;
+	int num, i;
+
+	if (sfi_gpio_table)
+		return 0;
+
+	num = SFI_GET_NUM_ENTRIES(sb, struct sfi_gpio_table_entry);
+	pentry = (struct sfi_gpio_table_entry *)sb->pentry;
+
+	sfi_gpio_table = kmalloc(num * sizeof(*pentry), GFP_KERNEL);
+	if (!sfi_gpio_table)
+		return -ENOMEM;
+
+	memcpy(sfi_gpio_table, pentry, num * sizeof(*pentry));
+	sfi_gpio_num_entry = num;
+
+	pr_debug("Pin info:\n");
+	for (i = 0; i < num; i++, pentry++)
+		pr_debug("[%2d] chip = %16.16s, name = %16.16s, pin=%d\n", i,
+			 pentry->controller_name, pentry->pin_name,
+			 pentry->pin_no);
+
+	return 0;
+}
+
+int __init sfi_gpio_init(void)
+{
+	return sfi_table_parse(SFI_SIG_GPIO, NULL, NULL, sfi_gpio_parse);
+}
diff --git a/drivers/sfi/sfi_core.c b/drivers/sfi/sfi_core.c
index 296db7a..2828da0 100644
--- a/drivers/sfi/sfi_core.c
+++ b/drivers/sfi/sfi_core.c
@@ -67,6 +67,7 @@
 #include <linux/acpi.h>
 #include <linux/init.h>
 #include <linux/sfi.h>
+#include <linux/sfi_gpio.h>
 #include <linux/slab.h>
 
 #include "sfi_core.h"
@@ -512,6 +513,12 @@ void __init sfi_init_late(void)
 	syst_va = sfi_map_memory(syst_pa, length);
 
 	sfi_acpi_init();
+
+	/*
+	 * Parsing GPIO table first, since the DEVS table will need this table
+	 * to map the pin name to the actual pin.
+	 */
+	sfi_gpio_init();
 }
 
 /*
diff --git a/include/linux/sfi_gpio.h b/include/linux/sfi_gpio.h
new file mode 100644
index 0000000..ef7e497
--- /dev/null
+++ b/include/linux/sfi_gpio.h
@@ -0,0 +1,27 @@
+#ifndef _LINUX_SFI_GPIO_H_
+#define _LINUX_SFI_GPIO_H_
+
+#include <linux/errno.h>
+#include <linux/gpio.h>
+#include <linux/sfi.h>
+
+#ifdef CONFIG_GPIO_SFI
+
+int sfi_get_gpio_by_name(const char *name);
+int __init sfi_gpio_init(void);
+
+#else /* CONFIG_GPIO_SFI */
+
+static inline int sfi_get_gpio_by_name(const char *name);
+{
+	return -1;
+}
+
+static inline int __init sfi_gpio_init(void)
+{
+	return -ENODEV;
+}
+
+#endif /* CONFIG_GPIO_SFI */
+
+#endif /* _LINUX_SFI_GPIO_H_ */
-- 
1.8.4.rc3


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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
  2013-10-17  3:03 ` David Cohen
@ 2013-10-17 12:41   ` Andy Shevchenko
  -1 siblings, 0 replies; 12+ messages in thread
From: Andy Shevchenko @ 2013-10-17 12:41 UTC (permalink / raw)
  To: David Cohen
  Cc: linux-kernel, sfi-devel, linux-gpio, Kuppuswamy Sathyanarayanan,
	Linus Walleij, Len Brown

On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> To support some (legacy) firmwares and platforms let's make life easier for
> their customers.
> 


> +int sfi_get_gpio_by_name(const char *name)
> +{
> +	struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
> +	int i;
> +
> +	if (!pentry)
> +		return -1;

^^^^ It seems an old version.

New version was published while ago and even has an ACK from Linus:

http://www.spinics.net/lists/kernel/msg1545960.html


-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
@ 2013-10-17 12:41   ` Andy Shevchenko
  0 siblings, 0 replies; 12+ messages in thread
From: Andy Shevchenko @ 2013-10-17 12:41 UTC (permalink / raw)
  To: David Cohen
  Cc: linux-kernel, sfi-devel, linux-gpio, Kuppuswamy Sathyanarayanan,
	Linus Walleij, Len Brown

On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> To support some (legacy) firmwares and platforms let's make life easier for
> their customers.
> 


> +int sfi_get_gpio_by_name(const char *name)
> +{
> +	struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
> +	int i;
> +
> +	if (!pentry)
> +		return -1;

^^^^ It seems an old version.

New version was published while ago and even has an ACK from Linus:

http://www.spinics.net/lists/kernel/msg1545960.html


-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
  2013-10-17 12:41   ` Andy Shevchenko
@ 2013-10-17 17:06     ` David Cohen
  -1 siblings, 0 replies; 12+ messages in thread
From: David Cohen @ 2013-10-17 17:06 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-kernel, sfi-devel, linux-gpio, Kuppuswamy Sathyanarayanan,
	Linus Walleij, Len Brown

On 10/17/2013 05:41 AM, Andy Shevchenko wrote:
> On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
>> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>
>> To support some (legacy) firmwares and platforms let's make life easier for
>> their customers.
>>
>
>
>> +int sfi_get_gpio_by_name(const char *name)
>> +{
>> +	struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
>> +	int i;
>> +
>> +	if (!pentry)
>> +		return -1;
>
> ^^^^ It seems an old version.
>
> New version was published while ago and even has an ACK from Linus:
>
> http://www.spinics.net/lists/kernel/msg1545960.html

Interesting :)
I got this patch cooking in our internal tree for quite some time.
Didn't realize about the new version. I'm waiting it to be merged to
send an Intel Mid patch that depends on that.

Please, ignore this version and consider the one pointed out by Andy.

Br, David Cohen

>
>


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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
@ 2013-10-17 17:06     ` David Cohen
  0 siblings, 0 replies; 12+ messages in thread
From: David Cohen @ 2013-10-17 17:06 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-kernel, sfi-devel, linux-gpio, Kuppuswamy Sathyanarayanan,
	Linus Walleij, Len Brown

On 10/17/2013 05:41 AM, Andy Shevchenko wrote:
> On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
>> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>
>> To support some (legacy) firmwares and platforms let's make life easier for
>> their customers.
>>
>
>
>> +int sfi_get_gpio_by_name(const char *name)
>> +{
>> +	struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
>> +	int i;
>> +
>> +	if (!pentry)
>> +		return -1;
>
> ^^^^ It seems an old version.
>
> New version was published while ago and even has an ACK from Linus:
>
> http://www.spinics.net/lists/kernel/msg1545960.html

Interesting :)
I got this patch cooking in our internal tree for quite some time.
Didn't realize about the new version. I'm waiting it to be merged to
send an Intel Mid patch that depends on that.

Please, ignore this version and consider the one pointed out by Andy.

Br, David Cohen

>
>


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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
  2013-10-17 12:41   ` Andy Shevchenko
@ 2013-11-12 18:55     ` Linus Walleij
  -1 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2013-11-12 18:55 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: David Cohen, linux-kernel, sfi-devel, linux-gpio,
	Kuppuswamy Sathyanarayanan, Len Brown

On Thu, Oct 17, 2013 at 2:41 PM, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
>> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>
>> To support some (legacy) firmwares and platforms let's make life easier for
>> their customers.
>
>> +int sfi_get_gpio_by_name(const char *name)
>> +{
>> +     struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
>> +     int i;
>> +
>> +     if (!pentry)
>> +             return -1;
>
> ^^^^ It seems an old version.
>
> New version was published while ago and even has an ACK from Linus:
>
> http://www.spinics.net/lists/kernel/msg1545960.html

So what is happening to this thing?

Is there some newer patch I should be merging?

Yours,
Linus Walleij

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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
@ 2013-11-12 18:55     ` Linus Walleij
  0 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2013-11-12 18:55 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: David Cohen, linux-kernel, sfi-devel, linux-gpio,
	Kuppuswamy Sathyanarayanan, Len Brown

On Thu, Oct 17, 2013 at 2:41 PM, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
>> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>
>> To support some (legacy) firmwares and platforms let's make life easier for
>> their customers.
>
>> +int sfi_get_gpio_by_name(const char *name)
>> +{
>> +     struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
>> +     int i;
>> +
>> +     if (!pentry)
>> +             return -1;
>
> ^^^^ It seems an old version.
>
> New version was published while ago and even has an ACK from Linus:
>
> http://www.spinics.net/lists/kernel/msg1545960.html

So what is happening to this thing?

Is there some newer patch I should be merging?

Yours,
Linus Walleij

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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
  2013-11-12 18:55     ` Linus Walleij
@ 2013-11-13 12:16       ` Andy Shevchenko
  -1 siblings, 0 replies; 12+ messages in thread
From: Andy Shevchenko @ 2013-11-13 12:16 UTC (permalink / raw)
  To: Linus Walleij
  Cc: David Cohen, linux-kernel, linux-gpio,
	Kuppuswamy Sathyanarayanan, Len Brown

On Tue, 2013-11-12 at 19:55 +0100, Linus Walleij wrote:
> On Thu, Oct 17, 2013 at 2:41 PM, Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
> >> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> >>
> >> To support some (legacy) firmwares and platforms let's make life easier for
> >> their customers.
> >
> >> +int sfi_get_gpio_by_name(const char *name)
> >> +{
> >> +     struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
> >> +     int i;
> >> +
> >> +     if (!pentry)
> >> +             return -1;
> >
> > ^^^^ It seems an old version.
> >
> > New version was published while ago and even has an ACK from Linus:
> >
> > http://www.spinics.net/lists/kernel/msg1545960.html
> 
> So what is happening to this thing?

Actually David now coordinates work done for Medfield & Co.
Perhaps he is not absent and could answer fast to this.

> Is there some newer patch I should be merging?

I'm pretty sure there is no newest version of patch.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
@ 2013-11-13 12:16       ` Andy Shevchenko
  0 siblings, 0 replies; 12+ messages in thread
From: Andy Shevchenko @ 2013-11-13 12:16 UTC (permalink / raw)
  To: Linus Walleij
  Cc: David Cohen, linux-kernel, linux-gpio,
	Kuppuswamy Sathyanarayanan, Len Brown

On Tue, 2013-11-12 at 19:55 +0100, Linus Walleij wrote:
> On Thu, Oct 17, 2013 at 2:41 PM, Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
> >> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> >>
> >> To support some (legacy) firmwares and platforms let's make life easier for
> >> their customers.
> >
> >> +int sfi_get_gpio_by_name(const char *name)
> >> +{
> >> +     struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
> >> +     int i;
> >> +
> >> +     if (!pentry)
> >> +             return -1;
> >
> > ^^^^ It seems an old version.
> >
> > New version was published while ago and even has an ACK from Linus:
> >
> > http://www.spinics.net/lists/kernel/msg1545960.html
> 
> So what is happening to this thing?

Actually David now coordinates work done for Medfield & Co.
Perhaps he is not absent and could answer fast to this.

> Is there some newer patch I should be merging?

I'm pretty sure there is no newest version of patch.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
  2013-11-13 12:16       ` Andy Shevchenko
@ 2013-11-13 17:41         ` David Cohen
  -1 siblings, 0 replies; 12+ messages in thread
From: David Cohen @ 2013-11-13 17:41 UTC (permalink / raw)
  To: Andy Shevchenko, Linus Walleij
  Cc: linux-kernel, linux-gpio, Kuppuswamy Sathyanarayanan, Len Brown

On 11/13/2013 04:16 AM, Andy Shevchenko wrote:
> On Tue, 2013-11-12 at 19:55 +0100, Linus Walleij wrote:
>> On Thu, Oct 17, 2013 at 2:41 PM, Andy Shevchenko
>> <andriy.shevchenko@linux.intel.com> wrote:
>>> On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
>>>> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>>>
>>>> To support some (legacy) firmwares and platforms let's make life easier for
>>>> their customers.
>>>
>>>> +int sfi_get_gpio_by_name(const char *name)
>>>> +{
>>>> +     struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
>>>> +     int i;
>>>> +
>>>> +     if (!pentry)
>>>> +             return -1;
>>>
>>> ^^^^ It seems an old version.
>>>
>>> New version was published while ago and even has an ACK from Linus:
>>>
>>> http://www.spinics.net/lists/kernel/msg1545960.html
>>
>> So what is happening to this thing?
>
> Actually David now coordinates work done for Medfield & Co.
> Perhaps he is not absent and could answer fast to this.
>
>> Is there some newer patch I should be merging?
>
> I'm pretty sure there is no newest version of patch.

Yeah, there is no newer version.
Linus, you're free to stick with the version pointed out by Andy on
this thread:
http://www.spinics.net/lists/kernel/msg1545960.html

Br, David

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

* Re: [PATCH] gpiolib: append SFI helpers for GPIO API
@ 2013-11-13 17:41         ` David Cohen
  0 siblings, 0 replies; 12+ messages in thread
From: David Cohen @ 2013-11-13 17:41 UTC (permalink / raw)
  To: Andy Shevchenko, Linus Walleij
  Cc: linux-kernel, linux-gpio, Kuppuswamy Sathyanarayanan, Len Brown

On 11/13/2013 04:16 AM, Andy Shevchenko wrote:
> On Tue, 2013-11-12 at 19:55 +0100, Linus Walleij wrote:
>> On Thu, Oct 17, 2013 at 2:41 PM, Andy Shevchenko
>> <andriy.shevchenko@linux.intel.com> wrote:
>>> On Wed, 2013-10-16 at 20:03 -0700, David Cohen wrote:
>>>> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>>>
>>>> To support some (legacy) firmwares and platforms let's make life easier for
>>>> their customers.
>>>
>>>> +int sfi_get_gpio_by_name(const char *name)
>>>> +{
>>>> +     struct sfi_gpio_table_entry *pentry = sfi_gpio_table;
>>>> +     int i;
>>>> +
>>>> +     if (!pentry)
>>>> +             return -1;
>>>
>>> ^^^^ It seems an old version.
>>>
>>> New version was published while ago and even has an ACK from Linus:
>>>
>>> http://www.spinics.net/lists/kernel/msg1545960.html
>>
>> So what is happening to this thing?
>
> Actually David now coordinates work done for Medfield & Co.
> Perhaps he is not absent and could answer fast to this.
>
>> Is there some newer patch I should be merging?
>
> I'm pretty sure there is no newest version of patch.

Yeah, there is no newer version.
Linus, you're free to stick with the version pointed out by Andy on
this thread:
http://www.spinics.net/lists/kernel/msg1545960.html

Br, David

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

end of thread, other threads:[~2013-11-13 17:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17  3:03 [PATCH] gpiolib: append SFI helpers for GPIO API David Cohen
2013-10-17  3:03 ` David Cohen
2013-10-17 12:41 ` Andy Shevchenko
2013-10-17 12:41   ` Andy Shevchenko
2013-10-17 17:06   ` David Cohen
2013-10-17 17:06     ` David Cohen
2013-11-12 18:55   ` Linus Walleij
2013-11-12 18:55     ` Linus Walleij
2013-11-13 12:16     ` Andy Shevchenko
2013-11-13 12:16       ` Andy Shevchenko
2013-11-13 17:41       ` David Cohen
2013-11-13 17:41         ` David Cohen

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.