OSDN Git Service

mtd: spinand: add spinand_read_cfg() helper
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 2 Jun 2021 09:49:11 +0000 (11:49 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Jun 2021 07:45:20 +0000 (09:45 +0200)
commitff0cd841d2a60ea6b711e35dce767dcf0aa294e5
tree9b11ef501d9131f82db6e39f7417e6f2a6d41fd7
parentae94c49527aa9bd3b563349adc4b5617747ca6bd
mtd: spinand: add spinand_read_cfg() helper

Put REG_CFG reading code in spinand_read_cfg().
This function will be needed by the future SPI-NAND resume ops.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210602094913.26472-2-patrice.chotard@foss.st.com
drivers/mtd/nand/spi/core.c