Re: [PATCH] GPIO, Fix bug where the wrong GPIO register is written to

From: Linus Walleij
Date: Mon Feb 10 2020 - 06:52:44 EST


On Sat, Jan 25, 2020 at 11:14 PM Paul Thomas <pthomas8589@xxxxxxxxx> wrote:

> Care is taken with "index", however with the current version
> the actual xgpio_writereg is using index for data but
> xgpio_regoffset(chip, i) for the offset. And since i is already
> incremented it is incorrect. This patch fixes it so that index
> is used for the offset too.
>
> Signed-off-by: Paul Thomas <pthomas8589@xxxxxxxxx>
> ---
> There are many different ways to correct this, I'd just like it to get
> fixed. I've tested this with a 5.2 kernel, but this patch is against
> 5.5rc7.

Fixed up the subject and applied, added a tag for stable.

Thanks!
Linus Walleij