diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-05-07 12:52:36 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-05-11 09:51:42 +0200 |
commit | b451f5beece3f5556920992e7498d23f6da6ef6e (patch) | |
tree | 8fca744c4f369c6d9bc9f223460bac30433d587c /drivers/mtd/nand/raw/nand_jedec.c | |
parent | 930370253ec51fccebb743409428ac2f364b3559 (diff) | |
download | linux-b451f5beece3f5556920992e7498d23f6da6ef6e.tar.bz2 |
mtd: rawnand: Give the possibility to verify a read operation is supported
This can be used to discriminate between two path in the parameter
page detection: use data_in cycles (like before) if supported, use the
CHANGE READ COLUMN command otherwise.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200507105241.14299-9-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd/nand/raw/nand_jedec.c')
-rw-r--r-- | drivers/mtd/nand/raw/nand_jedec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/nand_jedec.c b/drivers/mtd/nand/raw/nand_jedec.c index 15937e02c64f..63069f1948a8 100644 --- a/drivers/mtd/nand/raw/nand_jedec.c +++ b/drivers/mtd/nand/raw/nand_jedec.c @@ -51,7 +51,7 @@ int nand_jedec_detect(struct nand_chip *chip) } for (i = 0; i < JEDEC_PARAM_PAGES; i++) { - ret = nand_read_data_op(chip, p, sizeof(*p), true); + ret = nand_read_data_op(chip, p, sizeof(*p), true, false); if (ret) { ret = 0; goto free_jedec_param_page; |