WSL2-Linux-Kernel/drivers/mtd/spi-nor
Hsin-Yi Wang 679a71b311 mtd: spi-nor: Check bus width while setting QE bit
[ Upstream commit f01d8155a9 ]

spi_nor_write_16bit_sr_and_check() should also check if bus width is
4 before setting QE bit.

Fixes: 39d1e3340c ("mtd: spi-nor: Fix clearing of QE bit on lock()/unlock()")
Suggested-by: Michael Walle <michael@walle.cc>
Suggested-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20230818064524.1229100-2-hsinyi@chromium.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:22:49 +02:00
..
controllers spi: intel: Use correct mask for flash and protected regions 2022-11-26 09:24:32 +01:00
Kconfig mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
Makefile mtd: spi-nor: add initial sysfs support 2021-06-15 23:18:32 +05:30
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: Check bus width while setting QE bit 2023-09-19 12:22:49 +02:00
core.h mtd: spi-nor: Fix shift-out-of-bounds in spi_nor_set_erase_type 2023-03-10 09:40:05 +01:00
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: Get rid of duplicated argument in spi_nor_parse_sfdp() 2021-03-15 18:01:47 +02:00
macronix.c mtd: spi-nor: enable locking support for MX25L12805D 2021-05-27 20:04:38 +05:30
micron-st.c mtd: spi-nor: micron-st: allow using MT35XU512ABA in Octal DTR mode 2020-11-09 19:00:14 +05:30
otp.c mtd: spi-nor: otp: implement erase for Winbond and similar flashes 2021-06-09 23:34:16 +05:30
sfdp.c mtd: spi-nor: Fix shift-out-of-bounds in spi_nor_set_erase_type 2023-03-10 09:40:05 +01:00
sfdp.h mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp() 2021-03-15 18:01:47 +02:00
spansion.c mtd: spi-nor: spansion: Consider reserved bits in CFR5 register 2023-03-10 09:40:05 +01:00
sst.c mtd: spi-nor: sst: Add support for Global Unlock on sst26vf 2021-02-05 15:24:59 +02:00
swp.c mtd: spi-nor: swp: Improve code around spi_nor_check_lock_status_sr() 2021-03-31 22:41:34 +03:00
sysfs.c mtd: spi-nor: hide jedec_id sysfs attribute if not present 2022-12-31 13:14:11 +01:00
winbond.c mtd: spi-nor: otp: implement erase for Winbond and similar flashes 2021-06-09 23:34:16 +05:30
xilinx.c mtd: spi-nor: Fix mtd size for s3an flashes 2022-03-08 19:12:33 +01:00
xmc.c mtd: spi-nor: Move XMC bits out of core.c 2020-03-17 09:28:06 +02:00