[PATCH v4 0/2] Add support for micron SPI NAND MT29F2G01AAAED

From: Thirumalesha Narasimhappa
Date: Sun Sep 13 2020 - 12:16:07 EST


Adding support for Micron SPI NAND MT29F2G01AAAED device and generalised
the structure & function names as per the review comments

v4: Split patch into two parts,
1. Generalise the oob structure & function names as show in v3
2. Add support for MT29F2G01AAAED device
a. Add oob generic section check in the function micron_ooblayout_free
b. Rename mt29f2g01aaaed_* to generic name micron_4_*

v3: As per the review comments,
1. Renamed read_cache_variants as quadio_read_cache_variants,
write_cache_variants as x4_write_cache_variants/x1_write_cache_variants,
update_cache_variants as x4_update_cache_variants/x1_update_cache_variants,
read_cache_variants as x4_read_cache_variants
2. Renamed micron_8_ooblayout as micron_grouped_ooblayout &
mt29f2g01aaaed_ooblayout as micron_interleaved_ooblayout
3. Generalized page size based oob section check in
mt29f2g01aaaed_ooblayout_ecc function
and separate case check for two bytes BBM reserved in
mt29f2g01aaaed_ooblayout_free function
4. Removed mt29f2g01aaaed_ecc_get_status function &
MICRON_STATUS_ECC_1TO4_BITFLIPS

v2: Removed SPINAND_SELECT_TARGET as per the comments & fixed typo
errors

v1: Add support for Micron SPI Nand device MT29F2G01AAAED

Thirumalesha Narasimhappa (2):
mtd: spinand: micron: Generalize the function and structure names
mtd: spinand: micron: add support for MT29F2G01AAAED

drivers/mtd/nand/spi/micron.c | 144 ++++++++++++++++++++++++----------
1 file changed, 104 insertions(+), 40 deletions(-)

--
2.25.1