[0/5] Another smaller update to the nand stack
mbox series

Message ID 20220728171744.1761739-1-michael@amarulasolutions.com
Headers show
Series
  • Another smaller update to the nand stack
Related show

Message

Michael Trimarchi July 28, 2022, 5:17 p.m. UTC
Update the stack to move it slowly to linux with some improvements.
We want to support more samsung variant and clean up a bit the code.
This will be the last upstream changes for now until a quick review
of spl code will be done to reduce duplication. I decided to move the
imx8mn_bsh_smm_s2 board to use the full nand detect because onfi can
easily fail on no-onfi, no-jedec nand. I take care to move the mt7621
to use nand_detect and ask gently to test it again

Series successfully tested on imx8mn bsh smm s2 with NAND:
	- Macronix MX30LF4G18AC
	  512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64

Michael Trimarchi (5):
  mtd: nand: Rename the nand_manufacturers struct
  mtd: nand: change return type of nand_get_flash_type() to int
  mtd: nand: Rename nand_get_flash_type() into nand_detect()
  mtd: nand: samsung: Retrieve ECC requirements from extended
  configs: imx8mn_bsh_smm_s2: Use nand_base ident for nand
    identification

 configs/imx8mn_bsh_smm_s2_defconfig |  2 ++
 drivers/mtd/nand/raw/mt7621_nand.c  |  9 ++++---
 drivers/mtd/nand/raw/mxs_nand_spl.c |  8 +++----
 drivers/mtd/nand/raw/nand_base.c    | 37 +++++++++++++----------------
 drivers/mtd/nand/raw/nand_ids.c     |  2 +-
 drivers/mtd/nand/raw/nand_samsung.c | 20 ++++++++++++++++
 include/linux/mtd/rawnand.h         | 13 +++++-----
 7 files changed, 54 insertions(+), 37 deletions(-)