linux-stable/drivers/mtd/spi-nor
Takahiro Kuwano abdf5a5ef9 mtd: spi-nor: sfdp: Fix wrong erase type bitmask for overlaid region
At the time spi_nor_region_check_overlay() is called, the erase types are
sorted in ascending order of erase size. The 'erase_type' should be masked
with 'BIT(erase[i].idx)' instead of 'BIT(i)'.

Fixes: b038e8e3be ("mtd: spi-nor: parse SFDP Sector Map Parameter Table")
Cc: stable@vger.kernel.org
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
[ta: Add Fixes tag and Cc to stable]
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/fd90c40d5b626a1319a78fc2bcee79a8871d4d57.1601612872.git.Takahiro.Kuwano@infineon.com
2021-02-05 14:56:17 +02:00
..
controllers mtd: spi-nor: hisi-sfc: Put child node np on error path 2021-01-23 14:49:52 +02:00
atmel.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
catalyst.c mtd: spi-nor: Move Catalyst bits out of core.c 2020-03-17 09:28:05 +02:00
core.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
core.h mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
eon.c mtd: spi-nor: Move Eon bits out of core.c 2020-03-17 09:28:02 +02:00
esmt.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
everspin.c mtd: spi-nor: Move Everspin bits out of core.c 2020-03-17 09:28:03 +02:00
fujitsu.c mtd: spi-nor: Move Fujitsu bits out of core.c 2020-03-17 09:28:03 +02:00
gigadevice.c mtd: spi-nor: Trim what is exposed in spi-nor.h 2020-03-17 09:28:07 +02:00
intel.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
issi.c mtd: spi-nor: Trim what is exposed in spi-nor.h 2020-03-17 09:28:07 +02:00
Kconfig mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
macronix.c mtd: spi-nor: macronix: Add SECT_4K to mx25l12805d 2020-09-29 18:44:27 +05:30
Makefile mtd: spi-nor: Compile files in controllers/ directory 2020-04-09 22:00:13 +02:00
micron-st.c mtd: spi-nor: micron-st: allow using MT35XU512ABA in Octal DTR mode 2020-11-09 19:00:14 +05:30
sfdp.c mtd: spi-nor: sfdp: Fix wrong erase type bitmask for overlaid region 2021-02-05 14:56:17 +02:00
sfdp.h mtd: spi-nor: sfdp: detect Soft Reset sequence support from BFPT 2020-11-09 11:56:17 +05:30
spansion.c mtd: spi-nor: spansion: Set ECC block size 2020-12-07 22:57:29 +05:30
sst.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
winbond.c mtd: spi-nor: winbond: Add support for w25q64jwm 2020-09-29 18:47:11 +05:30
xilinx.c mtd: spi-nor: Trim what is exposed in spi-nor.h 2020-03-17 09:28:07 +02:00
xmc.c mtd: spi-nor: Move XMC bits out of core.c 2020-03-17 09:28:06 +02:00