linux-stable/include/linux/mtd
Miquel Raynal 3316c8e3ad mtd: nand: Create helpers to set/extract the ECC requirements
Despite its current name, the eccreq field actually encodes both the
NAND requirements and the final ECC configuration. That works fine when
using on-die ECC since those 2 concepts match perfectly, but it starts
being a problem as soon as we use on-host ECC engines, where we're not
guaranteed to have a perfect match.

Let's hide the ECC requirements access behind helpers so we can later
split those 2 concepts. As the structures have not been clarified yet,
these helpers access the same internal variable as
nanddev_get_ecc_conf() for now.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200827085208.16276-14-miquel.raynal@bootlin.com
2020-09-28 15:59:48 +02:00
..
bbm.h mtd: rawnand: Stop using nand_release() 2020-05-31 10:53:40 +02:00
blktrans.h
cfi.h mtd: Replace zero-length array with flexible-array 2020-05-26 13:30:06 +05:30
cfi_endian.h
concat.h
doc2000.h
flashchip.h mtd: onenand: omap2: Fix errors in style 2020-01-09 20:08:15 +01:00
ftl.h
gen_probe.h
hyperbus.h mtd: hyperbus: Replace HTTP links with HTTPS ones 2020-08-02 22:17:05 +02:00
inftl.h
jedec.h
latch-addr-flash.h
lpc32xx_mlc.h
lpc32xx_slc.h
map.h
mtd.h mtd: Add support for emulated SLC mode on MLC NANDs 2020-05-11 09:51:41 +02:00
mtdram.h
nand-gpio.h
nand.h mtd: nand: Create helpers to set/extract the ECC requirements 2020-09-28 15:59:48 +02:00
nand_bch.h
nand_ecc.h
ndfc.h
nftl.h
onenand.h
onenand_regs.h
onfi.h
partitions.h mtd: Add support for emulated SLC mode on MLC NANDs 2020-05-11 09:51:41 +02:00
pfow.h MTD: pfow.h: drop a duplicated word 2020-08-02 23:00:15 +02:00
physmap.h
pismo.h
plat-ram.h
platnand.h
qinfo.h mtd: Replace zero-length array with flexible-array 2020-05-26 13:30:06 +05:30
rawnand.h mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
sh_flctl.h
sharpsl.h
spear_smi.h
spi-nor.h mtd: spi-nor: Fix SPI NOR acronym 2020-05-28 10:46:23 +03:00
spinand.h mtd: nand: Rename a core structure 2020-06-26 08:35:04 +02:00
super.h
ubi.h
xip.h