linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by()
@ 2024-04-11 17:22 Andy Shevchenko
  2024-04-11 17:22 ` [PATCH v1 1/4] gpiolib: acpi: Extract __acpi_find_gpio() helper Andy Shevchenko
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-11 17:22 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andy Shevchenko, David Thompson,
	Linus Walleij, Patrick Rudolph, Rafael J. Wysocki, linux-gpio,
	linux-kernel, linux-acpi, netdev
  Cc: Bartosz Golaszewski, Mika Westerberg, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rafael J. Wysocki,
	Len Brown

Use con_id instead of property in the acpi_dev_gpio_irq_get_by().
It will be aligned with other GPIO library functions.

Assumed to go via my GPIO ACPI library tree follwoed by GPIO subsystem.

Andy Shevchenko (4):
  gpiolib: acpi: Extract __acpi_find_gpio() helper
  gpiolib: acpi: Simplify error handling in __acpi_find_gpio()
  gpiolib: acpi: Move acpi_can_fallback_to_crs() out of
    __acpi_find_gpio()
  gpiolib: acpi: Pass con_id instead of property into
    acpi_dev_gpio_irq_get_by()

 drivers/gpio/gpio-pca953x.c                   |  2 +-
 drivers/gpio/gpiolib-acpi.c                   | 52 +++++++++++--------
 .../mellanox/mlxbf_gige/mlxbf_gige_main.c     |  2 +-
 drivers/pinctrl/pinctrl-cy8c95x0.c            |  2 +-
 include/linux/acpi.h                          |  8 +--
 5 files changed, 37 insertions(+), 29 deletions(-)

-- 
2.43.0.rc1.1336.g36b5255a03ac


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

* [PATCH v1 1/4] gpiolib: acpi: Extract __acpi_find_gpio() helper
  2024-04-11 17:22 [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Andy Shevchenko
@ 2024-04-11 17:22 ` Andy Shevchenko
  2024-04-11 17:22 ` [PATCH v1 2/4] gpiolib: acpi: Simplify error handling in __acpi_find_gpio() Andy Shevchenko
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-11 17:22 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andy Shevchenko, David Thompson,
	Linus Walleij, Patrick Rudolph, Rafael J. Wysocki, linux-gpio,
	linux-kernel, linux-acpi, netdev
  Cc: Bartosz Golaszewski, Mika Westerberg, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rafael J. Wysocki,
	Len Brown

We want to reuse it later on in the code. In particular, it helps
to clean up the users of acpi_dev_gpio_irq_wake_get_by().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpiolib-acpi.c | 32 +++++++++++++++++++++++---------
 1 file changed, 23 insertions(+), 9 deletions(-)

diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index c2a33beeec50..d47b22ac3ecb 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -945,14 +945,11 @@ static bool acpi_can_fallback_to_crs(struct acpi_device *adev,
 	return con_id == NULL;
 }
 
-struct gpio_desc *acpi_find_gpio(struct fwnode_handle *fwnode,
-				 const char *con_id,
-				 unsigned int idx,
-				 enum gpiod_flags *dflags,
-				 unsigned long *lookupflags)
+static struct gpio_desc *
+__acpi_find_gpio(struct fwnode_handle *fwnode, const char *con_id, unsigned int idx,
+		 struct acpi_gpio_info *info)
 {
 	struct acpi_device *adev = to_acpi_device_node(fwnode);
-	struct acpi_gpio_info info;
 	struct gpio_desc *desc;
 	char propname[32];
 	int i;
@@ -969,10 +966,10 @@ struct gpio_desc *acpi_find_gpio(struct fwnode_handle *fwnode,
 
 		if (adev)
 			desc = acpi_get_gpiod_by_index(adev,
-						       propname, idx, &info);
+						       propname, idx, info);
 		else
 			desc = acpi_get_gpiod_from_data(fwnode,
-						        propname, idx, &info);
+							propname, idx, info);
 		if (PTR_ERR(desc) == -EPROBE_DEFER)
 			return ERR_CAST(desc);
 
@@ -985,11 +982,28 @@ struct gpio_desc *acpi_find_gpio(struct fwnode_handle *fwnode,
 		if (!adev || !acpi_can_fallback_to_crs(adev, con_id))
 			return ERR_PTR(-ENOENT);
 
-		desc = acpi_get_gpiod_by_index(adev, NULL, idx, &info);
+		desc = acpi_get_gpiod_by_index(adev, NULL, idx, info);
 		if (IS_ERR(desc))
 			return desc;
 	}
 
+	return desc;
+}
+
+struct gpio_desc *acpi_find_gpio(struct fwnode_handle *fwnode,
+				 const char *con_id,
+				 unsigned int idx,
+				 enum gpiod_flags *dflags,
+				 unsigned long *lookupflags)
+{
+	struct acpi_device *adev = to_acpi_device_node(fwnode);
+	struct acpi_gpio_info info;
+	struct gpio_desc *desc;
+
+	desc = __acpi_find_gpio(fwnode, con_id, idx, &info);
+	if (IS_ERR(desc))
+		return desc;
+
 	if (info.gpioint &&
 	    (*dflags == GPIOD_OUT_LOW || *dflags == GPIOD_OUT_HIGH)) {
 		dev_dbg(&adev->dev, "refusing GpioInt() entry when doing GPIOD_OUT_* lookup\n");
-- 
2.43.0.rc1.1336.g36b5255a03ac


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

* [PATCH v1 2/4] gpiolib: acpi: Simplify error handling in __acpi_find_gpio()
  2024-04-11 17:22 [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Andy Shevchenko
  2024-04-11 17:22 ` [PATCH v1 1/4] gpiolib: acpi: Extract __acpi_find_gpio() helper Andy Shevchenko
@ 2024-04-11 17:22 ` Andy Shevchenko
  2024-04-11 17:22 ` [PATCH v1 3/4] gpiolib: acpi: Move acpi_can_fallback_to_crs() out of __acpi_find_gpio() Andy Shevchenko
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-11 17:22 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andy Shevchenko, David Thompson,
	Linus Walleij, Patrick Rudolph, Rafael J. Wysocki, linux-gpio,
	linux-kernel, linux-acpi, netdev
  Cc: Bartosz Golaszewski, Mika Westerberg, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rafael J. Wysocki,
	Len Brown

Now that we don't perform anything on the GPIO descriptor,
we may simplify the error path in newly introduced helper.
Do it so.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpiolib-acpi.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index d47b22ac3ecb..fb2e14670b7a 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -974,20 +974,14 @@ __acpi_find_gpio(struct fwnode_handle *fwnode, const char *con_id, unsigned int
 			return ERR_CAST(desc);
 
 		if (!IS_ERR(desc))
-			break;
-	}
-
-	/* Then from plain _CRS GPIOs */
-	if (IS_ERR(desc)) {
-		if (!adev || !acpi_can_fallback_to_crs(adev, con_id))
-			return ERR_PTR(-ENOENT);
-
-		desc = acpi_get_gpiod_by_index(adev, NULL, idx, info);
-		if (IS_ERR(desc))
 			return desc;
 	}
 
-	return desc;
+	/* Then from plain _CRS GPIOs */
+	if (!adev || !acpi_can_fallback_to_crs(adev, con_id))
+		return ERR_PTR(-ENOENT);
+
+	return acpi_get_gpiod_by_index(adev, NULL, idx, info);
 }
 
 struct gpio_desc *acpi_find_gpio(struct fwnode_handle *fwnode,
-- 
2.43.0.rc1.1336.g36b5255a03ac


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

* [PATCH v1 3/4] gpiolib: acpi: Move acpi_can_fallback_to_crs() out of __acpi_find_gpio()
  2024-04-11 17:22 [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Andy Shevchenko
  2024-04-11 17:22 ` [PATCH v1 1/4] gpiolib: acpi: Extract __acpi_find_gpio() helper Andy Shevchenko
  2024-04-11 17:22 ` [PATCH v1 2/4] gpiolib: acpi: Simplify error handling in __acpi_find_gpio() Andy Shevchenko
@ 2024-04-11 17:22 ` Andy Shevchenko
  2024-04-11 17:22 ` [PATCH v1 4/4] gpiolib: acpi: Pass con_id instead of property into acpi_dev_gpio_irq_get_by() Andy Shevchenko
  2024-04-12 10:19 ` [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Mika Westerberg
  4 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-11 17:22 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andy Shevchenko, David Thompson,
	Linus Walleij, Patrick Rudolph, Rafael J. Wysocki, linux-gpio,
	linux-kernel, linux-acpi, netdev
  Cc: Bartosz Golaszewski, Mika Westerberg, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rafael J. Wysocki,
	Len Brown

New coming user may need to check for _CRS fallback slightly differently.
Move the current check out of the helper function to allow that user to
use it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpiolib-acpi.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index fb2e14670b7a..2b3fd43b13fc 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -947,7 +947,7 @@ static bool acpi_can_fallback_to_crs(struct acpi_device *adev,
 
 static struct gpio_desc *
 __acpi_find_gpio(struct fwnode_handle *fwnode, const char *con_id, unsigned int idx,
-		 struct acpi_gpio_info *info)
+		 bool can_fallback, struct acpi_gpio_info *info)
 {
 	struct acpi_device *adev = to_acpi_device_node(fwnode);
 	struct gpio_desc *desc;
@@ -978,7 +978,7 @@ __acpi_find_gpio(struct fwnode_handle *fwnode, const char *con_id, unsigned int
 	}
 
 	/* Then from plain _CRS GPIOs */
-	if (!adev || !acpi_can_fallback_to_crs(adev, con_id))
+	if (!adev || !can_fallback)
 		return ERR_PTR(-ENOENT);
 
 	return acpi_get_gpiod_by_index(adev, NULL, idx, info);
@@ -991,10 +991,11 @@ struct gpio_desc *acpi_find_gpio(struct fwnode_handle *fwnode,
 				 unsigned long *lookupflags)
 {
 	struct acpi_device *adev = to_acpi_device_node(fwnode);
+	bool can_fallback = acpi_can_fallback_to_crs(adev, con_id);
 	struct acpi_gpio_info info;
 	struct gpio_desc *desc;
 
-	desc = __acpi_find_gpio(fwnode, con_id, idx, &info);
+	desc = __acpi_find_gpio(fwnode, con_id, idx, can_fallback, &info);
 	if (IS_ERR(desc))
 		return desc;
 
-- 
2.43.0.rc1.1336.g36b5255a03ac


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

* [PATCH v1 4/4] gpiolib: acpi: Pass con_id instead of property into acpi_dev_gpio_irq_get_by()
  2024-04-11 17:22 [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Andy Shevchenko
                   ` (2 preceding siblings ...)
  2024-04-11 17:22 ` [PATCH v1 3/4] gpiolib: acpi: Move acpi_can_fallback_to_crs() out of __acpi_find_gpio() Andy Shevchenko
@ 2024-04-11 17:22 ` Andy Shevchenko
  2024-04-12 10:19 ` [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Mika Westerberg
  4 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-11 17:22 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andy Shevchenko, David Thompson,
	Linus Walleij, Patrick Rudolph, Rafael J. Wysocki, linux-gpio,
	linux-kernel, linux-acpi, netdev
  Cc: Bartosz Golaszewski, Mika Westerberg, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rafael J. Wysocki,
	Len Brown

Pass the con_id instead of property so that callers won't repeat
the GPIO suffixes to try.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpio-pca953x.c                           |  2 +-
 drivers/gpio/gpiolib-acpi.c                           | 11 +++++------
 .../ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c    |  2 +-
 drivers/pinctrl/pinctrl-cy8c95x0.c                    |  2 +-
 include/linux/acpi.h                                  |  8 ++++----
 5 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index 00ffa168e405..77a2812f2974 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -144,7 +144,7 @@ static int pca953x_acpi_get_irq(struct device *dev)
 	if (ret)
 		dev_warn(dev, "can't add GPIO ACPI mapping\n");
 
-	ret = acpi_dev_gpio_irq_get_by(ACPI_COMPANION(dev), "irq-gpios", 0);
+	ret = acpi_dev_gpio_irq_get_by(ACPI_COMPANION(dev), "irq", 0);
 	if (ret < 0)
 		return ret;
 
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index 2b3fd43b13fc..909113312a1b 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -1013,7 +1013,7 @@ struct gpio_desc *acpi_find_gpio(struct fwnode_handle *fwnode,
 /**
  * acpi_dev_gpio_irq_wake_get_by() - Find GpioInt and translate it to Linux IRQ number
  * @adev: pointer to a ACPI device to get IRQ from
- * @name: optional name of GpioInt resource
+ * @con_id: optional name of GpioInt resource
  * @index: index of GpioInt resource (starting from %0)
  * @wake_capable: Set to true if the IRQ is wake capable
  *
@@ -1024,15 +1024,15 @@ struct gpio_desc *acpi_find_gpio(struct fwnode_handle *fwnode,
  * The function is idempotent, though each time it runs it will configure GPIO
  * pin direction according to the flags in GpioInt resource.
  *
- * The function takes optional @name parameter. If the resource has a property
- * name, then only those will be taken into account.
+ * The function takes optional @con_id parameter. If the resource has
+ * a @con_id in a property, then only those will be taken into account.
  *
  * The GPIO is considered wake capable if the GpioInt resource specifies
  * SharedAndWake or ExclusiveAndWake.
  *
  * Return: Linux IRQ number (> %0) on success, negative errno on failure.
  */
-int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *name, int index,
+int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *con_id, int index,
 				  bool *wake_capable)
 {
 	int idx, i;
@@ -1043,9 +1043,8 @@ int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *name, in
 		struct acpi_gpio_info info;
 		struct gpio_desc *desc;
 
-		desc = acpi_get_gpiod_by_index(adev, name, i, &info);
-
 		/* Ignore -EPROBE_DEFER, it only matters if idx matches */
+		desc = __acpi_find_gpio(acpi_fwnode_handle(adev), con_id, i, true, &info);
 		if (IS_ERR(desc) && PTR_ERR(desc) != -EPROBE_DEFER)
 			return PTR_ERR(desc);
 
diff --git a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
index ba303868686a..b157f0f1c5a8 100644
--- a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
+++ b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
@@ -436,7 +436,7 @@ static int mlxbf_gige_probe(struct platform_device *pdev)
 	priv->rx_irq = platform_get_irq(pdev, MLXBF_GIGE_RECEIVE_PKT_INTR_IDX);
 	priv->llu_plu_irq = platform_get_irq(pdev, MLXBF_GIGE_LLU_PLU_INTR_IDX);
 
-	phy_irq = acpi_dev_gpio_irq_get_by(ACPI_COMPANION(&pdev->dev), "phy-gpios", 0);
+	phy_irq = acpi_dev_gpio_irq_get_by(ACPI_COMPANION(&pdev->dev), "phy", 0);
 	if (phy_irq < 0) {
 		dev_err(&pdev->dev, "Error getting PHY irq. Use polling instead");
 		phy_irq = PHY_POLL;
diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c
index 67b5d160c027..981c569bd671 100644
--- a/drivers/pinctrl/pinctrl-cy8c95x0.c
+++ b/drivers/pinctrl/pinctrl-cy8c95x0.c
@@ -95,7 +95,7 @@ static int cy8c95x0_acpi_get_irq(struct device *dev)
 	if (ret)
 		dev_warn(dev, "can't add GPIO ACPI mapping\n");
 
-	ret = acpi_dev_gpio_irq_get_by(ACPI_COMPANION(dev), "irq-gpios", 0);
+	ret = acpi_dev_gpio_irq_get_by(ACPI_COMPANION(dev), "irq", 0);
 	if (ret < 0)
 		return ret;
 
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 34829f2c517a..35aff121f418 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -1233,7 +1233,7 @@ bool acpi_gpio_get_irq_resource(struct acpi_resource *ares,
 				struct acpi_resource_gpio **agpio);
 bool acpi_gpio_get_io_resource(struct acpi_resource *ares,
 			       struct acpi_resource_gpio **agpio);
-int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *name, int index,
+int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *con_id, int index,
 				  bool *wake_capable);
 #else
 static inline bool acpi_gpio_get_irq_resource(struct acpi_resource *ares,
@@ -1246,7 +1246,7 @@ static inline bool acpi_gpio_get_io_resource(struct acpi_resource *ares,
 {
 	return false;
 }
-static inline int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *name,
+static inline int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *con_id,
 						int index, bool *wake_capable)
 {
 	return -ENXIO;
@@ -1259,10 +1259,10 @@ static inline int acpi_dev_gpio_irq_wake_get(struct acpi_device *adev, int index
 	return acpi_dev_gpio_irq_wake_get_by(adev, NULL, index, wake_capable);
 }
 
-static inline int acpi_dev_gpio_irq_get_by(struct acpi_device *adev, const char *name,
+static inline int acpi_dev_gpio_irq_get_by(struct acpi_device *adev, const char *con_id,
 					   int index)
 {
-	return acpi_dev_gpio_irq_wake_get_by(adev, name, index, NULL);
+	return acpi_dev_gpio_irq_wake_get_by(adev, con_id, index, NULL);
 }
 
 static inline int acpi_dev_gpio_irq_get(struct acpi_device *adev, int index)
-- 
2.43.0.rc1.1336.g36b5255a03ac


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

* Re: [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by()
  2024-04-11 17:22 [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Andy Shevchenko
                   ` (3 preceding siblings ...)
  2024-04-11 17:22 ` [PATCH v1 4/4] gpiolib: acpi: Pass con_id instead of property into acpi_dev_gpio_irq_get_by() Andy Shevchenko
@ 2024-04-12 10:19 ` Mika Westerberg
  2024-04-12 16:03   ` Andy Shevchenko
  4 siblings, 1 reply; 7+ messages in thread
From: Mika Westerberg @ 2024-04-12 10:19 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Bartosz Golaszewski, David Thompson, Linus Walleij,
	Patrick Rudolph, Rafael J. Wysocki, linux-gpio, linux-kernel,
	linux-acpi, netdev, Bartosz Golaszewski, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rafael J. Wysocki,
	Len Brown

On Thu, Apr 11, 2024 at 08:22:28PM +0300, Andy Shevchenko wrote:
> Use con_id instead of property in the acpi_dev_gpio_irq_get_by().
> It will be aligned with other GPIO library functions.
> 
> Assumed to go via my GPIO ACPI library tree follwoed by GPIO subsystem.
> 
> Andy Shevchenko (4):
>   gpiolib: acpi: Extract __acpi_find_gpio() helper
>   gpiolib: acpi: Simplify error handling in __acpi_find_gpio()
>   gpiolib: acpi: Move acpi_can_fallback_to_crs() out of
>     __acpi_find_gpio()
>   gpiolib: acpi: Pass con_id instead of property into
>     acpi_dev_gpio_irq_get_by()
> 
>  drivers/gpio/gpio-pca953x.c                   |  2 +-
>  drivers/gpio/gpiolib-acpi.c                   | 52 +++++++++++--------

For the gpiolib-acpi.c parts,

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

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

* Re: [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by()
  2024-04-12 10:19 ` [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Mika Westerberg
@ 2024-04-12 16:03   ` Andy Shevchenko
  0 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-12 16:03 UTC (permalink / raw)
  To: Mika Westerberg
  Cc: Bartosz Golaszewski, David Thompson, Linus Walleij,
	Patrick Rudolph, Rafael J. Wysocki, linux-gpio, linux-kernel,
	linux-acpi, netdev, Bartosz Golaszewski, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rafael J. Wysocki,
	Len Brown

On Fri, Apr 12, 2024 at 01:19:44PM +0300, Mika Westerberg wrote:
> On Thu, Apr 11, 2024 at 08:22:28PM +0300, Andy Shevchenko wrote:
> > Use con_id instead of property in the acpi_dev_gpio_irq_get_by().
> > It will be aligned with other GPIO library functions.
> > 
> > Assumed to go via my GPIO ACPI library tree follwoed by GPIO subsystem.
> > 
> > Andy Shevchenko (4):
> >   gpiolib: acpi: Extract __acpi_find_gpio() helper
> >   gpiolib: acpi: Simplify error handling in __acpi_find_gpio()
> >   gpiolib: acpi: Move acpi_can_fallback_to_crs() out of
> >     __acpi_find_gpio()
> >   gpiolib: acpi: Pass con_id instead of property into
> >     acpi_dev_gpio_irq_get_by()
> > 
> >  drivers/gpio/gpio-pca953x.c                   |  2 +-
> >  drivers/gpio/gpiolib-acpi.c                   | 52 +++++++++++--------
> 
> For the gpiolib-acpi.c parts,
> 
> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>

Pushed to my review and testing queue, thanks!

Note, I'll will wait for Acks for Mellanox and ACPI code
for a while, the series will appear in Linux Next for the
testing purposes, but if anybody objects, please let me
know.

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2024-04-12 16:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-11 17:22 [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Andy Shevchenko
2024-04-11 17:22 ` [PATCH v1 1/4] gpiolib: acpi: Extract __acpi_find_gpio() helper Andy Shevchenko
2024-04-11 17:22 ` [PATCH v1 2/4] gpiolib: acpi: Simplify error handling in __acpi_find_gpio() Andy Shevchenko
2024-04-11 17:22 ` [PATCH v1 3/4] gpiolib: acpi: Move acpi_can_fallback_to_crs() out of __acpi_find_gpio() Andy Shevchenko
2024-04-11 17:22 ` [PATCH v1 4/4] gpiolib: acpi: Pass con_id instead of property into acpi_dev_gpio_irq_get_by() Andy Shevchenko
2024-04-12 10:19 ` [PATCH v1 0/4] gpiolib: acpi: Use con_id in acpi_dev_gpio_irq_get_by() Mika Westerberg
2024-04-12 16:03   ` Andy Shevchenko

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