lkml.org 
[lkml]   [2020]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] GPIO, Fix bug where the wrong GPIO register is written to
On Sat, Jan 25, 2020 at 11:14 PM Paul Thomas <pthomas8589@gmail.com> 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@gmail.com>
> ---
> 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

\
 
 \ /
  Last update: 2020-02-10 12:53    [W:0.455 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site