linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters
@ 2025-04-07  7:09 Bartosz Golaszewski
  2025-04-07  7:09 ` [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks Bartosz Golaszewski
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-04-07  7:09 UTC (permalink / raw)
  To: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Bartosz Golaszewski, Krzysztof Kozlowski,
	Alim Akhtar
  Cc: linux-arm-kernel, linux-kernel, linux-gpio, linux-samsung-soc,
	Bartosz Golaszewski

struct gpio_chip now has callbacks for setting line values that return
an integer, allowing to indicate failures. We're in the process of
converting all GPIO drivers to using the new API. This series converts
all ARM board-file level controllers.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (4):
      ARM: orion/gpio: use new line value setter callbacks
      ARM: sa1100/gpio: use new line value setter callbacks
      ARM: scoop/gpio: use new line value setter callbacks
      ARM: s3c/gpio: use new line value setter callbacks

 arch/arm/common/sa1111.c         | 6 ++++--
 arch/arm/common/scoop.c          | 7 +++++--
 arch/arm/mach-s3c/gpio-samsung.c | 8 +++++---
 arch/arm/plat-orion/gpio.c       | 6 ++++--
 4 files changed, 18 insertions(+), 9 deletions(-)
---
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
change-id: 20250324-gpiochip-set-rv-arm-6f4271d952e3

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


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

* [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks
  2025-04-07  7:09 [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
@ 2025-04-07  7:09 ` Bartosz Golaszewski
  2025-04-08 12:03   ` Andrew Lunn
  2025-04-07  7:09 ` [PATCH 2/4] ARM: sa1100/gpio: " Bartosz Golaszewski
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-04-07  7:09 UTC (permalink / raw)
  To: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Bartosz Golaszewski, Krzysztof Kozlowski,
	Alim Akhtar
  Cc: linux-arm-kernel, linux-kernel, linux-gpio, linux-samsung-soc,
	Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

struct gpio_chip now has callbacks for setting line values that return
an integer, allowing to indicate failures. Convert the driver to using
them.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 arch/arm/plat-orion/gpio.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/plat-orion/gpio.c b/arch/arm/plat-orion/gpio.c
index 595e9cb33c1d..766036fdd792 100644
--- a/arch/arm/plat-orion/gpio.c
+++ b/arch/arm/plat-orion/gpio.c
@@ -211,7 +211,7 @@ orion_gpio_direction_output(struct gpio_chip *chip, unsigned pin, int value)
 	return 0;
 }
 
-static void orion_gpio_set(struct gpio_chip *chip, unsigned pin, int value)
+static int orion_gpio_set(struct gpio_chip *chip, unsigned int pin, int value)
 {
 	struct orion_gpio_chip *ochip = gpiochip_get_data(chip);
 	unsigned long flags;
@@ -219,6 +219,8 @@ static void orion_gpio_set(struct gpio_chip *chip, unsigned pin, int value)
 	spin_lock_irqsave(&ochip->lock, flags);
 	__set_level(ochip, pin, value);
 	spin_unlock_irqrestore(&ochip->lock, flags);
+
+	return 0;
 }
 
 static int orion_gpio_to_irq(struct gpio_chip *chip, unsigned pin)
@@ -540,7 +542,7 @@ void __init orion_gpio_init(int gpio_base, int ngpio,
 	ochip->chip.direction_input = orion_gpio_direction_input;
 	ochip->chip.get = orion_gpio_get;
 	ochip->chip.direction_output = orion_gpio_direction_output;
-	ochip->chip.set = orion_gpio_set;
+	ochip->chip.set_rv = orion_gpio_set;
 	ochip->chip.to_irq = orion_gpio_to_irq;
 	ochip->chip.base = gpio_base;
 	ochip->chip.ngpio = ngpio;

-- 
2.45.2


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

* [PATCH 2/4] ARM: sa1100/gpio: use new line value setter callbacks
  2025-04-07  7:09 [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
  2025-04-07  7:09 ` [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks Bartosz Golaszewski
@ 2025-04-07  7:09 ` Bartosz Golaszewski
  2025-04-15  8:28   ` Linus Walleij
  2025-04-07  7:09 ` [PATCH 3/4] ARM: scoop/gpio: " Bartosz Golaszewski
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-04-07  7:09 UTC (permalink / raw)
  To: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Bartosz Golaszewski, Krzysztof Kozlowski,
	Alim Akhtar
  Cc: linux-arm-kernel, linux-kernel, linux-gpio, linux-samsung-soc,
	Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

struct gpio_chip now has callbacks for setting line values that return
an integer, allowing to indicate failures. Convert the driver to using
them.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 arch/arm/common/sa1111.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c
index 9846f30990f7..70dca9937644 100644
--- a/arch/arm/common/sa1111.c
+++ b/arch/arm/common/sa1111.c
@@ -563,7 +563,7 @@ static int sa1111_gpio_get(struct gpio_chip *gc, unsigned offset)
 	return !!(readl_relaxed(reg + SA1111_GPIO_PXDRR) & mask);
 }
 
-static void sa1111_gpio_set(struct gpio_chip *gc, unsigned offset, int value)
+static int sa1111_gpio_set(struct gpio_chip *gc, unsigned int offset, int value)
 {
 	struct sa1111 *sachip = gc_to_sa1111(gc);
 	unsigned long flags;
@@ -574,6 +574,8 @@ static void sa1111_gpio_set(struct gpio_chip *gc, unsigned offset, int value)
 	sa1111_gpio_modify(reg + SA1111_GPIO_PXDWR, mask, value ? mask : 0);
 	sa1111_gpio_modify(reg + SA1111_GPIO_PXSSR, mask, value ? mask : 0);
 	spin_unlock_irqrestore(&sachip->lock, flags);
+
+	return 0;
 }
 
 static void sa1111_gpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
@@ -613,7 +615,7 @@ static int sa1111_setup_gpios(struct sa1111 *sachip)
 	sachip->gc.direction_input = sa1111_gpio_direction_input;
 	sachip->gc.direction_output = sa1111_gpio_direction_output;
 	sachip->gc.get = sa1111_gpio_get;
-	sachip->gc.set = sa1111_gpio_set;
+	sachip->gc.set_rv = sa1111_gpio_set;
 	sachip->gc.set_multiple = sa1111_gpio_set_multiple;
 	sachip->gc.to_irq = sa1111_gpio_to_irq;
 	sachip->gc.base = -1;

-- 
2.45.2


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

* [PATCH 3/4] ARM: scoop/gpio: use new line value setter callbacks
  2025-04-07  7:09 [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
  2025-04-07  7:09 ` [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks Bartosz Golaszewski
  2025-04-07  7:09 ` [PATCH 2/4] ARM: sa1100/gpio: " Bartosz Golaszewski
@ 2025-04-07  7:09 ` Bartosz Golaszewski
  2025-04-15  8:28   ` Linus Walleij
  2025-04-07  7:09 ` [PATCH 4/4] ARM: s3c/gpio: " Bartosz Golaszewski
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-04-07  7:09 UTC (permalink / raw)
  To: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Bartosz Golaszewski, Krzysztof Kozlowski,
	Alim Akhtar
  Cc: linux-arm-kernel, linux-kernel, linux-gpio, linux-samsung-soc,
	Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

struct gpio_chip now has callbacks for setting line values that return
an integer, allowing to indicate failures. Convert the driver to using
them.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 arch/arm/common/scoop.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c
index 0b08b6621878..2d3ee76c8e17 100644
--- a/arch/arm/common/scoop.c
+++ b/arch/arm/common/scoop.c
@@ -63,7 +63,8 @@ static void __scoop_gpio_set(struct scoop_dev *sdev,
 	iowrite16(gpwr, sdev->base + SCOOP_GPWR);
 }
 
-static void scoop_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
+static int scoop_gpio_set(struct gpio_chip *chip, unsigned int offset,
+			  int value)
 {
 	struct scoop_dev *sdev = gpiochip_get_data(chip);
 	unsigned long flags;
@@ -73,6 +74,8 @@ static void scoop_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
 	__scoop_gpio_set(sdev, offset, value);
 
 	spin_unlock_irqrestore(&sdev->scoop_lock, flags);
+
+	return 0;
 }
 
 static int scoop_gpio_get(struct gpio_chip *chip, unsigned offset)
@@ -215,7 +218,7 @@ static int scoop_probe(struct platform_device *pdev)
 		devptr->gpio.label = dev_name(&pdev->dev);
 		devptr->gpio.base = inf->gpio_base;
 		devptr->gpio.ngpio = 12; /* PA11 = 0, PA12 = 1, etc. up to PA22 = 11 */
-		devptr->gpio.set = scoop_gpio_set;
+		devptr->gpio.set_rv = scoop_gpio_set;
 		devptr->gpio.get = scoop_gpio_get;
 		devptr->gpio.direction_input = scoop_gpio_direction_input;
 		devptr->gpio.direction_output = scoop_gpio_direction_output;

-- 
2.45.2


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

* [PATCH 4/4] ARM: s3c/gpio: use new line value setter callbacks
  2025-04-07  7:09 [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
                   ` (2 preceding siblings ...)
  2025-04-07  7:09 ` [PATCH 3/4] ARM: scoop/gpio: " Bartosz Golaszewski
@ 2025-04-07  7:09 ` Bartosz Golaszewski
  2025-04-15  6:23   ` Krzysztof Kozlowski
  2025-04-09  8:35 ` [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
  2025-04-15 21:51 ` Linus Walleij
  5 siblings, 1 reply; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-04-07  7:09 UTC (permalink / raw)
  To: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Bartosz Golaszewski, Krzysztof Kozlowski,
	Alim Akhtar
  Cc: linux-arm-kernel, linux-kernel, linux-gpio, linux-samsung-soc,
	Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

struct gpio_chip now has callbacks for setting line values that return
an integer, allowing to indicate failures. Convert the driver to using
them.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 arch/arm/mach-s3c/gpio-samsung.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-s3c/gpio-samsung.c b/arch/arm/mach-s3c/gpio-samsung.c
index 87daaa09e2c3..ea496958f488 100644
--- a/arch/arm/mach-s3c/gpio-samsung.c
+++ b/arch/arm/mach-s3c/gpio-samsung.c
@@ -430,8 +430,8 @@ static int samsung_gpiolib_4bit2_output(struct gpio_chip *chip,
 	return 0;
 }
 
-static void samsung_gpiolib_set(struct gpio_chip *chip,
-				unsigned offset, int value)
+static int samsung_gpiolib_set(struct gpio_chip *chip, unsigned int offset,
+			       int value)
 {
 	struct samsung_gpio_chip *ourchip = to_samsung_gpio(chip);
 	void __iomem *base = ourchip->base;
@@ -447,6 +447,8 @@ static void samsung_gpiolib_set(struct gpio_chip *chip,
 	__raw_writel(dat, base + 0x04);
 
 	samsung_gpio_unlock(ourchip, flags);
+
+	return 0;
 }
 
 static int samsung_gpiolib_get(struct gpio_chip *chip, unsigned offset)
@@ -515,7 +517,7 @@ static void __init samsung_gpiolib_add(struct samsung_gpio_chip *chip)
 	if (!gc->direction_output)
 		gc->direction_output = samsung_gpiolib_2bit_output;
 	if (!gc->set)
-		gc->set = samsung_gpiolib_set;
+		gc->set_rv = samsung_gpiolib_set;
 	if (!gc->get)
 		gc->get = samsung_gpiolib_get;
 

-- 
2.45.2


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

* Re: [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks
  2025-04-07  7:09 ` [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks Bartosz Golaszewski
@ 2025-04-08 12:03   ` Andrew Lunn
  2025-04-08 12:12     ` Bartosz Golaszewski
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2025-04-08 12:03 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Krzysztof Kozlowski, Alim Akhtar, linux-arm-kernel,
	linux-kernel, linux-gpio, linux-samsung-soc, Bartosz Golaszewski

On Mon, Apr 07, 2025 at 09:09:18AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> struct gpio_chip now has callbacks for setting line values that return
> an integer, allowing to indicate failures. Convert the driver to using
> them.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

What is you intended merge path for these? Have arm-soc take them as a
whole?

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

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

* Re: [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks
  2025-04-08 12:03   ` Andrew Lunn
@ 2025-04-08 12:12     ` Bartosz Golaszewski
  2025-04-08 12:38       ` Arnd Bergmann
  0 siblings, 1 reply; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-04-08 12:12 UTC (permalink / raw)
  To: Andrew Lunn, Arnd Bergmann
  Cc: Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Krzysztof Kozlowski, Alim Akhtar, linux-arm-kernel,
	linux-kernel, linux-gpio, linux-samsung-soc, Bartosz Golaszewski

On Tue, Apr 8, 2025 at 2:03 PM Andrew Lunn <andrew@lunn.ch> wrote:
>
> On Mon, Apr 07, 2025 at 09:09:18AM +0200, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > struct gpio_chip now has callbacks for setting line values that return
> > an integer, allowing to indicate failures. Convert the driver to using
> > them.
> >
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> What is you intended merge path for these? Have arm-soc take them as a
> whole?
>
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>

That would be best, yes. I'm not sure how many of these platforms are
actively maintained.

Arnd: you were not Cc'ed on this (get_maintainer.pl didn't show your
address) but could you take this through the arm-soc tree?

Bart

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

* Re: [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks
  2025-04-08 12:12     ` Bartosz Golaszewski
@ 2025-04-08 12:38       ` Arnd Bergmann
  0 siblings, 0 replies; 14+ messages in thread
From: Arnd Bergmann @ 2025-04-08 12:38 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andrew Lunn
  Cc: Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Krzysztof Kozlowski, Alim Akhtar, linux-arm-kernel,
	linux-kernel, open list:GPIO SUBSYSTEM, linux-samsung-soc,
	Bartosz Golaszewski

On Tue, Apr 8, 2025, at 14:12, Bartosz Golaszewski wrote:
> On Tue, Apr 8, 2025 at 2:03 PM Andrew Lunn <andrew@lunn.ch> wrote:
>>
>> On Mon, Apr 07, 2025 at 09:09:18AM +0200, Bartosz Golaszewski wrote:
>> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>> >
>> > struct gpio_chip now has callbacks for setting line values that return
>> > an integer, allowing to indicate failures. Convert the driver to using
>> > them.
>> >
>> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>>
>> What is you intended merge path for these? Have arm-soc take them as a
>> whole?
>>
>> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>>
>
> That would be best, yes. I'm not sure how many of these platforms are
> actively maintained.
>
> Arnd: you were not Cc'ed on this (get_maintainer.pl didn't show your
> address) but could you take this through the arm-soc tree?

Sure, can you send them once more to soc@lists.linux.dev, either
as patches or a pull request?

      Arnd

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

* Re: [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters
  2025-04-07  7:09 [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
                   ` (3 preceding siblings ...)
  2025-04-07  7:09 ` [PATCH 4/4] ARM: s3c/gpio: " Bartosz Golaszewski
@ 2025-04-09  8:35 ` Bartosz Golaszewski
  2025-04-15 21:51 ` Linus Walleij
  5 siblings, 0 replies; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-04-09  8:35 UTC (permalink / raw)
  To: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Krzysztof Kozlowski, Alim Akhtar,
	Bartosz Golaszewski
  Cc: Bartosz Golaszewski, linux-arm-kernel, linux-kernel, linux-gpio,
	linux-samsung-soc

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Mon, 07 Apr 2025 09:09:17 +0200, Bartosz Golaszewski wrote:
> struct gpio_chip now has callbacks for setting line values that return
> an integer, allowing to indicate failures. We're in the process of
> converting all GPIO drivers to using the new API. This series converts
> all ARM board-file level controllers.
> 
> 

Applied, thanks!

[1/4] ARM: orion/gpio: use new line value setter callbacks
      https://git.kernel.org/brgl/linux/c/6982e6b0bdd838fe71a6133cfc0f79645bc31a04
[2/4] ARM: sa1100/gpio: use new line value setter callbacks
      https://git.kernel.org/brgl/linux/c/9c3782118a57a6d7a17980115f46bcf2b85fdf29
[3/4] ARM: scoop/gpio: use new line value setter callbacks
      https://git.kernel.org/brgl/linux/c/dd8a6af45928871e5d9a04959ab8f97c3714264a
[4/4] ARM: s3c/gpio: use new line value setter callbacks
      https://git.kernel.org/brgl/linux/c/fb52f3226cab41b94f9e6ac92b1108bce324e700

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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

* Re: [PATCH 4/4] ARM: s3c/gpio: use new line value setter callbacks
  2025-04-07  7:09 ` [PATCH 4/4] ARM: s3c/gpio: " Bartosz Golaszewski
@ 2025-04-15  6:23   ` Krzysztof Kozlowski
  2025-04-16 15:51     ` Bartosz Golaszewski
  0 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2025-04-15  6:23 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Russell King, Linus Walleij, Alim Akhtar
  Cc: linux-arm-kernel, linux-kernel, linux-gpio, linux-samsung-soc,
	Bartosz Golaszewski

On 07/04/2025 09:09, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> struct gpio_chip now has callbacks for setting line values that return
> an integer, allowing to indicate failures. Convert the driver to using
> them.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
>  arch/arm/mach-s3c/gpio-samsung.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
This was applied a week ago, but it is not in the next (next-20250414).
Are you sure you feed linux-next with all your patches?

Best regards,
Krzysztof

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

* Re: [PATCH 3/4] ARM: scoop/gpio: use new line value setter callbacks
  2025-04-07  7:09 ` [PATCH 3/4] ARM: scoop/gpio: " Bartosz Golaszewski
@ 2025-04-15  8:28   ` Linus Walleij
  0 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2025-04-15  8:28 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Krzysztof Kozlowski, Alim Akhtar, linux-arm-kernel, linux-kernel,
	linux-gpio, linux-samsung-soc, Bartosz Golaszewski

On Mon, Apr 7, 2025 at 9:09 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> struct gpio_chip now has callbacks for setting line values that return
> an integer, allowing to indicate failures. Convert the driver to using
> them.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH 2/4] ARM: sa1100/gpio: use new line value setter callbacks
  2025-04-07  7:09 ` [PATCH 2/4] ARM: sa1100/gpio: " Bartosz Golaszewski
@ 2025-04-15  8:28   ` Linus Walleij
  0 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2025-04-15  8:28 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Krzysztof Kozlowski, Alim Akhtar, linux-arm-kernel, linux-kernel,
	linux-gpio, linux-samsung-soc, Bartosz Golaszewski

On Mon, Apr 7, 2025 at 9:09 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> struct gpio_chip now has callbacks for setting line values that return
> an integer, allowing to indicate failures. Convert the driver to using
> them.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters
  2025-04-07  7:09 [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
                   ` (4 preceding siblings ...)
  2025-04-09  8:35 ` [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
@ 2025-04-15 21:51 ` Linus Walleij
  5 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2025-04-15 21:51 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Krzysztof Kozlowski, Alim Akhtar, linux-arm-kernel, linux-kernel,
	linux-gpio, linux-samsung-soc, Bartosz Golaszewski

On Mon, Apr 7, 2025 at 9:09 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> struct gpio_chip now has callbacks for setting line values that return
> an integer, allowing to indicate failures. We're in the process of
> converting all GPIO drivers to using the new API. This series converts
> all ARM board-file level controllers.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH 4/4] ARM: s3c/gpio: use new line value setter callbacks
  2025-04-15  6:23   ` Krzysztof Kozlowski
@ 2025-04-16 15:51     ` Bartosz Golaszewski
  0 siblings, 0 replies; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-04-16 15:51 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andrew Lunn, Sebastian Hesselbarth, Gregory Clement, Russell King,
	Linus Walleij, Alim Akhtar, linux-arm-kernel, linux-kernel,
	linux-gpio, linux-samsung-soc, Bartosz Golaszewski

On Tue, Apr 15, 2025 at 8:23 AM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On 07/04/2025 09:09, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > struct gpio_chip now has callbacks for setting line values that return
> > an integer, allowing to indicate failures. Convert the driver to using
> > them.
> >
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> > ---
> >  arch/arm/mach-s3c/gpio-samsung.c | 8 +++++---
> >  1 file changed, 5 insertions(+), 3 deletions(-)
> This was applied a week ago, but it is not in the next (next-20250414).
> Are you sure you feed linux-next with all your patches?
>
> Best regards,
> Krzysztof

Hi!

This is a bit of an exception for me. As discussed with Arnd[1] I
picked the patches up into a new branch and sent out a PR to
arm-soc[2]. Once Arnd merges the PR, the patches will appear in next,
I don't have any ARM branch to feed into linux-next.

Bartosz

[1] https://lore.kernel.org/all/18d59ff1-a357-413c-bde2-961ae0c9b5f2@app.fastmail.com/
[2] https://lore.kernel.org/all/20250409083513.21115-1-brgl@bgdev.pl/

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

end of thread, other threads:[~2025-04-16 15:51 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-07  7:09 [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
2025-04-07  7:09 ` [PATCH 1/4] ARM: orion/gpio: use new line value setter callbacks Bartosz Golaszewski
2025-04-08 12:03   ` Andrew Lunn
2025-04-08 12:12     ` Bartosz Golaszewski
2025-04-08 12:38       ` Arnd Bergmann
2025-04-07  7:09 ` [PATCH 2/4] ARM: sa1100/gpio: " Bartosz Golaszewski
2025-04-15  8:28   ` Linus Walleij
2025-04-07  7:09 ` [PATCH 3/4] ARM: scoop/gpio: " Bartosz Golaszewski
2025-04-15  8:28   ` Linus Walleij
2025-04-07  7:09 ` [PATCH 4/4] ARM: s3c/gpio: " Bartosz Golaszewski
2025-04-15  6:23   ` Krzysztof Kozlowski
2025-04-16 15:51     ` Bartosz Golaszewski
2025-04-09  8:35 ` [PATCH 0/4] ARM: convert board-file GPIO chips to using new value setters Bartosz Golaszewski
2025-04-15 21:51 ` Linus Walleij

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).