]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: maps: physmap: Store gpio_values correctly
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Fri, 29 Mar 2019 02:13:21 +0000 (15:13 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 05:39:52 +0000 (07:39 +0200)
commit8b429d215a58f377c28d5e0174cfd9d423b00691
tree8aada974b512d942aa06ddc5d2fce792d9088e14
parent052fec61f59df4ed79ff0d67bb0db85fe9ae426f
mtd: maps: physmap: Store gpio_values correctly

commit 64d14c6fe040361ff6aecb825e392cf97837cd9e upstream.

When the gpio-addr-flash.c driver was merged with physmap-core.c the
code to store the current gpio_values was lost. This meant that once a
gpio was asserted it was never de-asserted. Fix this by storing the
current offset in gpio_values like the old driver used to.

Fixes: commit ba32ce95cbd9 ("mtd: maps: Merge gpio-addr-flash.c into physmap-core.c")
Cc: <stable@vger.kernel.org>
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/maps/physmap-core.c