alistair23-linux/include/linux/mtd
Tudor Ambarus 39d1e3340c
mtd: spi-nor: Fix clearing of QE bit on lock()/unlock()
Make sure that when doing a lock() or an unlock() operation we don't clear
the QE bit from Status Register 2.

JESD216 revB or later offers information about the *default* Status
Register commands to use (see BFPT DWORDS[15], bits 22:20). In this
standard, Status Register 1 refers to the first data byte transferred on a
Read Status (05h) or Write Status (01h) command. Status register 2 refers
to the byte read using instruction 35h. Status register 2 is the second
byte transferred in a Write Status (01h) command.

Industry naming and definitions of these Status Registers may differ.
The definitions are described in JESD216B, BFPT DWORDS[15], bits 22:20.
There are cases in which writing only one byte to the Status Register 1
has the side-effect of clearing Status Register 2 and implicitly the Quad
Enable bit. This side-effect is hit just by the
BFPT_DWORD15_QER_SR2_BIT1_BUGGY and BFPT_DWORD15_QER_SR2_BIT1 cases.

Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
2019-11-11 08:55:25 +02:00
..
bbm.h
blktrans.h
cfi.h NAND core changes: 2019-07-06 22:51:56 +02:00
cfi_endian.h
concat.h
doc2000.h
flashchip.h
ftl.h
gen_probe.h
hyperbus.h
inftl.h
jedec.h
latch-addr-flash.h
lpc32xx_mlc.h
lpc32xx_slc.h
map.h
mtd.h mtd: mtdcore: add debugfs nodes for querying the flash name and id 2019-08-29 10:36:47 +03:00
mtdram.h
nand-gpio.h
nand.h mtd: nand: fix typo, s/erasablocks/eraseblocks 2019-08-26 09:25:41 +02:00
nand_bch.h
nand_ecc.h
ndfc.h
nftl.h
onenand.h
onenand_regs.h This pull-request contains the following changes for MTD: 2019-07-13 15:42:44 -07:00
onfi.h
partitions.h
pfow.h
physmap.h
pismo.h
plat-ram.h
platnand.h
qinfo.h
rawnand.h This pull-request contains the following changes for MTD: 2019-07-13 15:42:44 -07:00
sh_flctl.h
sharpsl.h mtd: rawnand: sharpsl: add include guard to linux/mtd/sharpsl.h 2019-08-26 09:25:41 +02:00
spear_smi.h
spi-nor.h mtd: spi-nor: Fix clearing of QE bit on lock()/unlock() 2019-11-11 08:55:25 +02:00
spinand.h mtd: spinand: Add initial support for Paragon PN26G0xA 2019-06-27 20:13:07 +02:00
super.h mtd: Kill mount_mtd() 2019-09-05 14:34:26 -04:00
ubi.h
xip.h