]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: spi-nor: fix Spansion regressions (aliased with Winbond)
authorBrian Norris <computersforpeace@gmail.com>
Tue, 15 Dec 2015 18:48:20 +0000 (10:48 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 6 Jan 2016 00:00:03 +0000 (16:00 -0800)
commit67b9bcd36906e12a15ffec19463afbbd6a41660e
tree19adb5fb993d851e177a9d958f102844ce87bc5a
parent472b444eef934eb7e90334efdd7fc7954cfe5132
mtd: spi-nor: fix Spansion regressions (aliased with Winbond)

Spansion and Winbond have occasionally used the same manufacturer ID,
and they don't support the same features. Particularly, writing SR=0
seems to break read access for Spansion's s25fl064k. Unfortunately, we
don't currently have a way to differentiate these Spansion and Winbond
parts, so rather than regressing support for these Spansion flash, let's
drop the new Winbond lock/unlock support for now. We can try to address
Winbond support during the next release cycle.

Original discussion:

http://patchwork.ozlabs.org/patch/549173/
http://patchwork.ozlabs.org/patch/553683/

Fixes: 357ca38d4751 ("mtd: spi-nor: support lock/unlock/is_locked for Winbond")
Fixes: c6fc2171b249 ("mtd: spi-nor: disable protection for Winbond flash at startup")
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reported-by: Felix Fietkau <nbd@openwrt.org>
Cc: Felix Fietkau <nbd@openwrt.org>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h