Re: [PATCH v12 3/4] gpio: thunderx: Utilize for_each_set_clump macro

From: Linus Walleij
Date: Thu Nov 05 2020 - 04:11:13 EST


On Sun, Oct 18, 2020 at 11:41 PM Syed Nayyar Waris <syednwaris@xxxxxxxxx> wrote:

> This patch reimplements the thunderx_gpio_set_multiple function in
> drivers/gpio/gpio-thunderx.c to use the new for_each_set_clump macro.
> Instead of looping for each bank in thunderx_gpio_set_multiple
> function, now we can skip bank which is not set and save cycles.
>
> Cc: Robert Richter <rrichter@xxxxxxxxxxx>
> Cc: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
> Signed-off-by: Syed Nayyar Waris <syednwaris@xxxxxxxxx>
> Signed-off-by: William Breathitt Gray <vilhelm.gray@xxxxxxxxx>
> ---
> Changes in v12:
> - No change.

Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

If Andrew merges this through his tree.

Yours,
Linus Walleij