Name

nand_read_page_syndrome — [REPLACEABLE] hardware ECC syndrome based page read

Synopsis

int nand_read_page_syndrome (struct mtd_info * mtd,
 struct nand_chip * chip,
 uint8_t * buf,
 int oob_required,
 int page);
 

Arguments

struct mtd_info * mtd

mtd info structure

struct nand_chip * chip

nand chip info structure

uint8_t * buf

buffer to store read data

int oob_required

caller requires OOB data read to chip->oob_poi

int page

page number to read

Description

The hw generator calculates the error syndrome automatically. Therefore we need a special oob layout and handling.