Skip to content

Another smaller update to the nand stack

Michael Trimarchi u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mtd: nand: Rename the nand_manufacturers structdrivers/mtd/nand/raw/nand_base.c drivers/mtd/nand/raw/nand_ids.c include/linux/mtd/rawnand.h+7 -70 replies
2/5mtd: nand: change return type of nand_get_flash_type() to intdrivers/mtd/nand/raw/mt7621_nand.c drivers/mtd/nand/raw/mxs_nand_spl.c drivers/mtd/nand/raw/nand_base.c +1 more+24 -270 replies
3/5mtd: nand: Rename nand_get_flash_type() into nand_detect()drivers/mtd/nand/raw/mt7621_nand.c drivers/mtd/nand/raw/mxs_nand_spl.c drivers/mtd/nand/raw/nand_base.c +1 more+9 -110 replies
4/5mtd: nand: samsung: Retrieve ECC requirements from extendeddrivers/mtd/nand/raw/nand_samsung.c+20 -00 replies
5/5configs: imx8mn_bsh_smm_s2: Use nand_base ident for nand identificationconfigs/imx8mn_bsh_smm_s2_defconfig+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Another smaller update to the nand stack

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(-)
Signature · 1 line
2.34.1