1NAND_READ_PAGE_HWECC(9)   Internal Functions Provided  NAND_READ_PAGE_HWECC(9)
2
3
4

NAME

6       nand_read_page_hwecc_oob_first - [REPLACEABLE] hw ecc, read oob first
7

SYNOPSIS

9       int nand_read_page_hwecc_oob_first(struct mtd_info * mtd,
10                                          struct nand_chip * chip,
11                                          uint8_t * buf, int oob_required,
12                                          int page);
13

ARGUMENTS

15       mtd
16           mtd info structure
17
18       chip
19           nand chip info structure
20
21       buf
22           buffer to store read data
23
24       oob_required
25           caller requires OOB data read to chip->oob_poi
26
27       page
28           page number to read
29

DESCRIPTION

31       Hardware ECC for large page chips, require OOB to be read first. For
32       this ECC mode, the write_page method is re-used from ECC_HW. These
33       methods read/write ECC from the OOB area, unlike the ECC_HW_SYNDROME
34       support with multiple ECC steps, follows the “infix ECC” scheme and
35       reads/writes ECC from the data area, by overwriting the NAND
36       manufacturer bad block markings.
37

AUTHOR

39       Thomas Gleixner <tglx@linutronix.de>
40           Author.
41
43Kernel Hackers Manual 3.10         June 2019           NAND_READ_PAGE_HWECC(9)
Impressum