linux-stable/drivers/mtd
Tudor Ambarus 40c13a82a1 mtd: spi-nor: core: Update flash's current address mode when changing address mode
commit 37513c5613 upstream.

The bug was obswerved while reading code. There are not many users of
addr_mode_nbytes. Anyway, we should update the flash's current address
mode when changing the address mode, fix it. We don't care for now about
the set_4byte_addr_mode(nor, false) from spi_nor_restore(), as it is
used at driver remove and shutdown.

Fixes: d7931a2150 ("mtd: spi-nor: core: Track flash's internal address mode")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230331074606.3559258-9-tudor.ambarus@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:11:34 +09:00
..
chips
devices
hyperbus
lpddr
maps
nand mtd: rawnand: stm32_fmc2: use timings.mode instead of checking tRC_min 2023-04-20 12:36:52 +02:00
parsers mtd: parsers: scpart: fix __udivdi3 undefined on mips 2023-01-02 12:08:51 +01:00
spi-nor mtd: spi-nor: core: Update flash's current address mode when changing address mode 2023-05-11 23:11:34 +09:00
tests
ubi ubi: Fix return value overwrite issue in try_write_vid_and_data() 2023-05-11 23:10:54 +09:00
ftl.c
inftlcore.c
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c
mtdblock.c mtdblock: tolerate corrected bit-flips 2023-04-20 12:36:52 +02:00
mtdblock_ro.c
mtdchar.c
mtdconcat.c
mtdcore.c mtd: core: fix error path for nvmem provider 2023-05-11 23:11:33 +09:00
mtdcore.h
mtdoops.c
mtdpart.c mtd: mtdpart: Don't create platform device that'll never probe 2023-03-10 09:28:56 +01:00
mtdpstore.c
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c