From: Michal Simek <michal.simek@amd.com>
To: Bartosz Golaszewski <brgl@bgdev.pl>,
Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>,
Srinivas Neeli <srinivas.neeli@amd.com>,
Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Subject: Re: [PATCH] gpio: xilinx: convert set_multiple() to the new API as well
Date: Thu, 17 Jul 2025 15:16:20 +0200 [thread overview]
Message-ID: <d658a6c5-1d38-455f-8531-9a42a2db2b6f@amd.com> (raw)
In-Reply-To: <20250717131116.53878-1-brgl@bgdev.pl>
On 7/17/25 15:11, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> The patch converting the driver to using new GPIO line value setters
> only converted the set() callback and missed set_multiple(). Fix it now.
>
> Fixes: 1919ea19a4ff ("gpio: xilinx: use new GPIO line value setter callbacks")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
> drivers/gpio/gpio-xilinx.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpio/gpio-xilinx.c b/drivers/gpio/gpio-xilinx.c
> index aaaa74117980..36d91cacc2d9 100644
> --- a/drivers/gpio/gpio-xilinx.c
> +++ b/drivers/gpio/gpio-xilinx.c
> @@ -175,8 +175,8 @@ static int xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
> * This function writes the specified values into the specified signals of the
> * GPIO devices.
> */
> -static void xgpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
> - unsigned long *bits)
> +static int xgpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
> + unsigned long *bits)
> {
> DECLARE_BITMAP(hw_mask, 64);
> DECLARE_BITMAP(hw_bits, 64);
> @@ -196,6 +196,8 @@ static void xgpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
> bitmap_copy(chip->state, state, 64);
>
> raw_spin_unlock_irqrestore(&chip->gpio_lock, flags);
> +
> + return 0;
> }
>
> /**
> @@ -605,7 +607,7 @@ static int xgpio_probe(struct platform_device *pdev)
> chip->gc.set_rv = xgpio_set;
> chip->gc.request = xgpio_request;
> chip->gc.free = xgpio_free;
> - chip->gc.set_multiple = xgpio_set_multiple;
> + chip->gc.set_multiple_rv = xgpio_set_multiple;
>
> chip->gc.label = dev_name(dev);
>
Acked-by: Michal Simek <michal.simek@amd.com>
Thanks,
Michal
next prev parent reply other threads:[~2025-07-17 14:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-17 13:11 [PATCH] gpio: xilinx: convert set_multiple() to the new API as well Bartosz Golaszewski
2025-07-17 13:16 ` Michal Simek [this message]
2025-07-18 7:55 ` Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d658a6c5-1d38-455f-8531-9a42a2db2b6f@amd.com \
--to=michal.simek@amd.com \
--cc=bartosz.golaszewski@linaro.org \
--cc=brgl@bgdev.pl \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shubhrajyoti.datta@amd.com \
--cc=srinivas.neeli@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox