* [PATCH 0/2] soc: use new GPIO line value setter callbacks
@ 2025-06-10 12:38 Bartosz Golaszewski
2025-06-10 12:38 ` [PATCH 1/2] soc: fsl: qe: " Bartosz Golaszewski
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-06-10 12:38 UTC (permalink / raw)
To: Qiang Zhao, Christophe Leroy, Linus Walleij, Bartosz Golaszewski,
Geert Uytterhoeven, Magnus Damm
Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-soc, Bartosz Golaszewski
Commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters that return
values") added new line setter callbacks to struct gpio_chip. They allow
to indicate failures to callers. We're in the process of converting all
GPIO controllers to using them before removing the old ones. This series
converts all GPIO chips implemented under drivers/soc/.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (2):
soc: fsl: qe: use new GPIO line value setter callbacks
soc: renesas: pwc-rzv2m: use new GPIO line value setter callbacks
drivers/soc/fsl/qe/gpio.c | 6 ++++--
drivers/soc/renesas/pwc-rzv2m.c | 8 +++++---
2 files changed, 9 insertions(+), 5 deletions(-)
---
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
change-id: 20250523-gpiochip-set-rv-soc-14e1d9414f70
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/2] soc: fsl: qe: use new GPIO line value setter callbacks
2025-06-10 12:38 [PATCH 0/2] soc: use new GPIO line value setter callbacks Bartosz Golaszewski
@ 2025-06-10 12:38 ` Bartosz Golaszewski
2025-07-13 8:49 ` Bartosz Golaszewski
2025-07-30 13:34 ` Christophe Leroy
2025-06-10 12:38 ` [PATCH 2/2] soc: renesas: pwc-rzv2m: " Bartosz Golaszewski
2025-06-23 7:33 ` [PATCH 0/2] soc: " Bartosz Golaszewski
2 siblings, 2 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-06-10 12:38 UTC (permalink / raw)
To: Qiang Zhao, Christophe Leroy, Linus Walleij, Bartosz Golaszewski,
Geert Uytterhoeven, Magnus Damm
Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-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>
---
drivers/soc/fsl/qe/gpio.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/fsl/qe/gpio.c b/drivers/soc/fsl/qe/gpio.c
index 3ef24ba0245b75471ffa10f579bb744c0c3b7e43..5391cce4e6efe6d120db7fdf7509dc5eb840f344 100644
--- a/drivers/soc/fsl/qe/gpio.c
+++ b/drivers/soc/fsl/qe/gpio.c
@@ -57,7 +57,7 @@ static int qe_gpio_get(struct gpio_chip *gc, unsigned int gpio)
return !!(ioread32be(®s->cpdata) & pin_mask);
}
-static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
+static int qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
{
struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
struct qe_gpio_chip *qe_gc = gpiochip_get_data(gc);
@@ -75,6 +75,8 @@ static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
iowrite32be(qe_gc->cpdata, ®s->cpdata);
spin_unlock_irqrestore(&qe_gc->lock, flags);
+
+ return 0;
}
static void qe_gpio_set_multiple(struct gpio_chip *gc,
@@ -317,7 +319,7 @@ static int __init qe_add_gpiochips(void)
gc->direction_input = qe_gpio_dir_in;
gc->direction_output = qe_gpio_dir_out;
gc->get = qe_gpio_get;
- gc->set = qe_gpio_set;
+ gc->set_rv = qe_gpio_set;
gc->set_multiple = qe_gpio_set_multiple;
ret = of_mm_gpiochip_add_data(np, mm_gc, qe_gc);
--
2.48.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/2] soc: renesas: pwc-rzv2m: use new GPIO line value setter callbacks
2025-06-10 12:38 [PATCH 0/2] soc: use new GPIO line value setter callbacks Bartosz Golaszewski
2025-06-10 12:38 ` [PATCH 1/2] soc: fsl: qe: " Bartosz Golaszewski
@ 2025-06-10 12:38 ` Bartosz Golaszewski
2025-06-12 14:58 ` Geert Uytterhoeven
2025-06-23 7:33 ` [PATCH 0/2] soc: " Bartosz Golaszewski
2 siblings, 1 reply; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-06-10 12:38 UTC (permalink / raw)
To: Qiang Zhao, Christophe Leroy, Linus Walleij, Bartosz Golaszewski,
Geert Uytterhoeven, Magnus Damm
Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-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>
---
drivers/soc/renesas/pwc-rzv2m.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/soc/renesas/pwc-rzv2m.c b/drivers/soc/renesas/pwc-rzv2m.c
index 452cee8d68bee7d04e7acbee6bd90dab457c77c3..4dbcb3d4a90ccd2796e26d6250aa246b32b09285 100644
--- a/drivers/soc/renesas/pwc-rzv2m.c
+++ b/drivers/soc/renesas/pwc-rzv2m.c
@@ -24,8 +24,8 @@ struct rzv2m_pwc_priv {
DECLARE_BITMAP(ch_en_bits, 2);
};
-static void rzv2m_pwc_gpio_set(struct gpio_chip *chip, unsigned int offset,
- int value)
+static int rzv2m_pwc_gpio_set(struct gpio_chip *chip, unsigned int offset,
+ int value)
{
struct rzv2m_pwc_priv *priv = gpiochip_get_data(chip);
u32 reg;
@@ -38,6 +38,8 @@ static void rzv2m_pwc_gpio_set(struct gpio_chip *chip, unsigned int offset,
writel(reg, priv->base + PWC_GPIO);
assign_bit(offset, priv->ch_en_bits, value);
+
+ return 0;
}
static int rzv2m_pwc_gpio_get(struct gpio_chip *chip, unsigned int offset)
@@ -62,7 +64,7 @@ static const struct gpio_chip rzv2m_pwc_gc = {
.label = "gpio_rzv2m_pwc",
.owner = THIS_MODULE,
.get = rzv2m_pwc_gpio_get,
- .set = rzv2m_pwc_gpio_set,
+ .set_rv = rzv2m_pwc_gpio_set,
.direction_output = rzv2m_pwc_gpio_direction_output,
.can_sleep = false,
.ngpio = 2,
--
2.48.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] soc: renesas: pwc-rzv2m: use new GPIO line value setter callbacks
2025-06-10 12:38 ` [PATCH 2/2] soc: renesas: pwc-rzv2m: " Bartosz Golaszewski
@ 2025-06-12 14:58 ` Geert Uytterhoeven
0 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2025-06-12 14:58 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Qiang Zhao, Christophe Leroy, Linus Walleij, Magnus Damm,
linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-soc, Bartosz Golaszewski
On Tue, 10 Jun 2025 at 14:38, 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: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.17.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/2] soc: use new GPIO line value setter callbacks
2025-06-10 12:38 [PATCH 0/2] soc: use new GPIO line value setter callbacks Bartosz Golaszewski
2025-06-10 12:38 ` [PATCH 1/2] soc: fsl: qe: " Bartosz Golaszewski
2025-06-10 12:38 ` [PATCH 2/2] soc: renesas: pwc-rzv2m: " Bartosz Golaszewski
@ 2025-06-23 7:33 ` Bartosz Golaszewski
2025-06-23 9:54 ` Christophe Leroy
2 siblings, 1 reply; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-06-23 7:33 UTC (permalink / raw)
To: Qiang Zhao, Christophe Leroy, Linus Walleij, Bartosz Golaszewski,
Geert Uytterhoeven, Magnus Damm
Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-soc, Bartosz Golaszewski
On Tue, Jun 10, 2025 at 2:38 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> Commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters that return
> values") added new line setter callbacks to struct gpio_chip. They allow
> to indicate failures to callers. We're in the process of converting all
> GPIO controllers to using them before removing the old ones. This series
> converts all GPIO chips implemented under drivers/soc/.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
> Bartosz Golaszewski (2):
> soc: fsl: qe: use new GPIO line value setter callbacks
> soc: renesas: pwc-rzv2m: use new GPIO line value setter callbacks
>
> drivers/soc/fsl/qe/gpio.c | 6 ++++--
> drivers/soc/renesas/pwc-rzv2m.c | 8 +++++---
> 2 files changed, 9 insertions(+), 5 deletions(-)
> ---
> base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
> change-id: 20250523-gpiochip-set-rv-soc-14e1d9414f70
>
> Best regards,
> --
> Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
I see Geert queued patch 2/2, who would take patch 1/2?
Bart
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/2] soc: use new GPIO line value setter callbacks
2025-06-23 7:33 ` [PATCH 0/2] soc: " Bartosz Golaszewski
@ 2025-06-23 9:54 ` Christophe Leroy
2025-06-23 9:55 ` Bartosz Golaszewski
0 siblings, 1 reply; 11+ messages in thread
From: Christophe Leroy @ 2025-06-23 9:54 UTC (permalink / raw)
To: Bartosz Golaszewski, Qiang Zhao, Linus Walleij,
Geert Uytterhoeven, Magnus Damm
Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-soc, Bartosz Golaszewski
Hi,
Le 23/06/2025 à 09:33, Bartosz Golaszewski a écrit :
> On Tue, Jun 10, 2025 at 2:38 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>>
>> Commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters that return
>> values") added new line setter callbacks to struct gpio_chip. They allow
>> to indicate failures to callers. We're in the process of converting all
>> GPIO controllers to using them before removing the old ones. This series
>> converts all GPIO chips implemented under drivers/soc/.
>>
>> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>> ---
>> Bartosz Golaszewski (2):
>> soc: fsl: qe: use new GPIO line value setter callbacks
>> soc: renesas: pwc-rzv2m: use new GPIO line value setter callbacks
>>
>> drivers/soc/fsl/qe/gpio.c | 6 ++++--
>> drivers/soc/renesas/pwc-rzv2m.c | 8 +++++---
>> 2 files changed, 9 insertions(+), 5 deletions(-)
>> ---
>> base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
>> change-id: 20250523-gpiochip-set-rv-soc-14e1d9414f70
>>
>> Best regards,
>> --
>> Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>>
>
> I see Geert queued patch 2/2, who would take patch 1/2?
It is in my pipe for v6.17 but if someone else wants to take it I can
Ack it instead.
Christophe
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/2] soc: use new GPIO line value setter callbacks
2025-06-23 9:54 ` Christophe Leroy
@ 2025-06-23 9:55 ` Bartosz Golaszewski
2025-06-23 10:05 ` Christophe Leroy
0 siblings, 1 reply; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-06-23 9:55 UTC (permalink / raw)
To: Christophe Leroy
Cc: Qiang Zhao, Linus Walleij, Geert Uytterhoeven, Magnus Damm,
linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-soc, Bartosz Golaszewski
On Mon, Jun 23, 2025 at 11:54 AM Christophe Leroy
<christophe.leroy@csgroup.eu> wrote:
>
> Hi,
>
>
> Le 23/06/2025 à 09:33, Bartosz Golaszewski a écrit :
> > On Tue, Jun 10, 2025 at 2:38 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> >>
> >> Commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters that return
> >> values") added new line setter callbacks to struct gpio_chip. They allow
> >> to indicate failures to callers. We're in the process of converting all
> >> GPIO controllers to using them before removing the old ones. This series
> >> converts all GPIO chips implemented under drivers/soc/.
> >>
> >> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >> ---
> >> Bartosz Golaszewski (2):
> >> soc: fsl: qe: use new GPIO line value setter callbacks
> >> soc: renesas: pwc-rzv2m: use new GPIO line value setter callbacks
> >>
> >> drivers/soc/fsl/qe/gpio.c | 6 ++++--
> >> drivers/soc/renesas/pwc-rzv2m.c | 8 +++++---
> >> 2 files changed, 9 insertions(+), 5 deletions(-)
> >> ---
> >> base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
> >> change-id: 20250523-gpiochip-set-rv-soc-14e1d9414f70
> >>
> >> Best regards,
> >> --
> >> Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >>
> >
> > I see Geert queued patch 2/2, who would take patch 1/2?
>
>
> It is in my pipe for v6.17 but if someone else wants to take it I can
> Ack it instead.
>
> Christophe
No, that's alright, I just didn't get any notification nor is it in
linux-next yet.
Bart
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/2] soc: use new GPIO line value setter callbacks
2025-06-23 9:55 ` Bartosz Golaszewski
@ 2025-06-23 10:05 ` Christophe Leroy
2025-07-07 8:40 ` Bartosz Golaszewski
0 siblings, 1 reply; 11+ messages in thread
From: Christophe Leroy @ 2025-06-23 10:05 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Qiang Zhao, Linus Walleij, Geert Uytterhoeven, Magnus Damm,
linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-soc, Bartosz Golaszewski
Le 23/06/2025 à 11:55, Bartosz Golaszewski a écrit :
> On Mon, Jun 23, 2025 at 11:54 AM Christophe Leroy
> <christophe.leroy@csgroup.eu> wrote:
>>
>> Hi,
>>
>>
>> Le 23/06/2025 à 09:33, Bartosz Golaszewski a écrit :
>>> On Tue, Jun 10, 2025 at 2:38 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>>>>
>>>> Commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters that return
>>>> values") added new line setter callbacks to struct gpio_chip. They allow
>>>> to indicate failures to callers. We're in the process of converting all
>>>> GPIO controllers to using them before removing the old ones. This series
>>>> converts all GPIO chips implemented under drivers/soc/.
>>>>
>>>> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>>>> ---
>>>> Bartosz Golaszewski (2):
>>>> soc: fsl: qe: use new GPIO line value setter callbacks
>>>> soc: renesas: pwc-rzv2m: use new GPIO line value setter callbacks
>>>>
>>>> drivers/soc/fsl/qe/gpio.c | 6 ++++--
>>>> drivers/soc/renesas/pwc-rzv2m.c | 8 +++++---
>>>> 2 files changed, 9 insertions(+), 5 deletions(-)
>>>> ---
>>>> base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
>>>> change-id: 20250523-gpiochip-set-rv-soc-14e1d9414f70
>>>>
>>>> Best regards,
>>>> --
>>>> Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>>>>
>>>
>>> I see Geert queued patch 2/2, who would take patch 1/2?
>>
>>
>> It is in my pipe for v6.17 but if someone else wants to take it I can
>> Ack it instead.
>>
>> Christophe
>
> No, that's alright, I just didn't get any notification nor is it in
> linux-next yet.
Don't worry, it is not lost, see
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=&submitter=&state=&q=&archive=&delegate=61610
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/2] soc: use new GPIO line value setter callbacks
2025-06-23 10:05 ` Christophe Leroy
@ 2025-07-07 8:40 ` Bartosz Golaszewski
0 siblings, 0 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-07-07 8:40 UTC (permalink / raw)
To: Christophe Leroy
Cc: Qiang Zhao, Linus Walleij, Geert Uytterhoeven, Magnus Damm,
linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-soc, Bartosz Golaszewski
On Mon, Jun 23, 2025 at 12:05 PM Christophe Leroy
<christophe.leroy@csgroup.eu> wrote:
>
>
>
> Le 23/06/2025 à 11:55, Bartosz Golaszewski a écrit :
> > On Mon, Jun 23, 2025 at 11:54 AM Christophe Leroy
> > <christophe.leroy@csgroup.eu> wrote:
> >>
> >> Hi,
> >>
> >>
> >> Le 23/06/2025 à 09:33, Bartosz Golaszewski a écrit :
> >>> On Tue, Jun 10, 2025 at 2:38 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> >>>>
> >>>> Commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters that return
> >>>> values") added new line setter callbacks to struct gpio_chip. They allow
> >>>> to indicate failures to callers. We're in the process of converting all
> >>>> GPIO controllers to using them before removing the old ones. This series
> >>>> converts all GPIO chips implemented under drivers/soc/.
> >>>>
> >>>> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >>>> ---
> >>>> Bartosz Golaszewski (2):
> >>>> soc: fsl: qe: use new GPIO line value setter callbacks
> >>>> soc: renesas: pwc-rzv2m: use new GPIO line value setter callbacks
> >>>>
> >>>> drivers/soc/fsl/qe/gpio.c | 6 ++++--
> >>>> drivers/soc/renesas/pwc-rzv2m.c | 8 +++++---
> >>>> 2 files changed, 9 insertions(+), 5 deletions(-)
> >>>> ---
> >>>> base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
> >>>> change-id: 20250523-gpiochip-set-rv-soc-14e1d9414f70
> >>>>
> >>>> Best regards,
> >>>> --
> >>>> Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >>>>
> >>>
> >>> I see Geert queued patch 2/2, who would take patch 1/2?
> >>
> >>
> >> It is in my pipe for v6.17 but if someone else wants to take it I can
> >> Ack it instead.
> >>
> >> Christophe
> >
> > No, that's alright, I just didn't get any notification nor is it in
> > linux-next yet.
>
> Don't worry, it is not lost, see
> https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=&submitter=&state=&q=&archive=&delegate=61610
Hi,
This is still not in linux-next and the status on patchwork didn't
change. This will be the last remaining patch not under drivers/gpio/
that's needed to complete this rework by the next cycle. Would you
mind just Acking it and I can take it through the GPIO tree?
Bart
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] soc: fsl: qe: use new GPIO line value setter callbacks
2025-06-10 12:38 ` [PATCH 1/2] soc: fsl: qe: " Bartosz Golaszewski
@ 2025-07-13 8:49 ` Bartosz Golaszewski
2025-07-30 13:34 ` Christophe Leroy
1 sibling, 0 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-07-13 8:49 UTC (permalink / raw)
To: Qiang Zhao, Christophe Leroy, Linus Walleij, Bartosz Golaszewski,
Geert Uytterhoeven, Magnus Damm
Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, linux-gpio,
linux-renesas-soc, Bartosz Golaszewski
On Tue, Jun 10, 2025 at 2:38 PM 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>
> ---
> drivers/soc/fsl/qe/gpio.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/soc/fsl/qe/gpio.c b/drivers/soc/fsl/qe/gpio.c
> index 3ef24ba0245b75471ffa10f579bb744c0c3b7e43..5391cce4e6efe6d120db7fdf7509dc5eb840f344 100644
> --- a/drivers/soc/fsl/qe/gpio.c
> +++ b/drivers/soc/fsl/qe/gpio.c
> @@ -57,7 +57,7 @@ static int qe_gpio_get(struct gpio_chip *gc, unsigned int gpio)
> return !!(ioread32be(®s->cpdata) & pin_mask);
> }
>
> -static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
> +static int qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
> {
> struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
> struct qe_gpio_chip *qe_gc = gpiochip_get_data(gc);
> @@ -75,6 +75,8 @@ static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
> iowrite32be(qe_gc->cpdata, ®s->cpdata);
>
> spin_unlock_irqrestore(&qe_gc->lock, flags);
> +
> + return 0;
> }
>
> static void qe_gpio_set_multiple(struct gpio_chip *gc,
> @@ -317,7 +319,7 @@ static int __init qe_add_gpiochips(void)
> gc->direction_input = qe_gpio_dir_in;
> gc->direction_output = qe_gpio_dir_out;
> gc->get = qe_gpio_get;
> - gc->set = qe_gpio_set;
> + gc->set_rv = qe_gpio_set;
> gc->set_multiple = qe_gpio_set_multiple;
>
> ret = of_mm_gpiochip_add_data(np, mm_gc, qe_gc);
>
> --
> 2.48.1
>
Christophe: let me reping you here as there's no reason for this
relatively trivial patch to miss the upcoming merge window. Do you
have any objections to me queueing it via the GPIO tree?
Bartosz
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] soc: fsl: qe: use new GPIO line value setter callbacks
2025-06-10 12:38 ` [PATCH 1/2] soc: fsl: qe: " Bartosz Golaszewski
2025-07-13 8:49 ` Bartosz Golaszewski
@ 2025-07-30 13:34 ` Christophe Leroy
1 sibling, 0 replies; 11+ messages in thread
From: Christophe Leroy @ 2025-07-30 13:34 UTC (permalink / raw)
To: Qiang Zhao, Linus Walleij, Geert Uytterhoeven, Magnus Damm,
Bartosz Golaszewski
Cc: Christophe Leroy, linuxppc-dev, linux-arm-kernel, linux-kernel,
linux-gpio, linux-renesas-soc, Bartosz Golaszewski
On Tue, 10 Jun 2025 14:38:50 +0200, Bartosz Golaszewski wrote:
> struct gpio_chip now has callbacks for setting line values that return
> an integer, allowing to indicate failures. Convert the driver to using
> them.
>
>
Applied, thanks!
[1/2] soc: fsl: qe: use new GPIO line value setter callbacks
(no commit info)
Best regards,
--
Christophe Leroy <christophe.leroy@csgroup.eu>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2025-07-30 13:50 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 12:38 [PATCH 0/2] soc: use new GPIO line value setter callbacks Bartosz Golaszewski
2025-06-10 12:38 ` [PATCH 1/2] soc: fsl: qe: " Bartosz Golaszewski
2025-07-13 8:49 ` Bartosz Golaszewski
2025-07-30 13:34 ` Christophe Leroy
2025-06-10 12:38 ` [PATCH 2/2] soc: renesas: pwc-rzv2m: " Bartosz Golaszewski
2025-06-12 14:58 ` Geert Uytterhoeven
2025-06-23 7:33 ` [PATCH 0/2] soc: " Bartosz Golaszewski
2025-06-23 9:54 ` Christophe Leroy
2025-06-23 9:55 ` Bartosz Golaszewski
2025-06-23 10:05 ` Christophe Leroy
2025-07-07 8:40 ` Bartosz Golaszewski
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).