[0/7] NAND new improvements
mbox series

Message ID 20220727093748.1415135-1-michael@amarulasolutions.com
Headers show
Series
  • NAND new improvements
Related show

Message

Michael Trimarchi July 27, 2022, 9:37 a.m. UTC
Another series that move the mtd stack to be more similar to the linux
one. This series include even the merging of the spl part of mxs and
mt7621 in order to create a common layer for new driver and avoid
duplication and small fixes in mxs nand

Michael Trimarchi (7):
  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
  mtd: nand: Fix ecc in mxs_nand_spl onfi mode
  mtd: nand: mxs_nand_spl Fix loop exit condition
  mtd: nand: Add a common spl layer for nand subsystem

 drivers/mtd/nand/raw/Makefile          |   4 +-
 drivers/mtd/nand/raw/mt7621_nand.c     |   9 +-
 drivers/mtd/nand/raw/mt7621_nand_spl.c | 188 +------------------
 drivers/mtd/nand/raw/mxs_nand_spl.c    | 190 ++-----------------
 drivers/mtd/nand/raw/nand_base.c       |  37 ++--
 drivers/mtd/nand/raw/nand_common_spl.c | 245 +++++++++++++++++++++++++
 drivers/mtd/nand/raw/nand_common_spl.h |  15 ++
 drivers/mtd/nand/raw/nand_ids.c        |   2 +-
 drivers/mtd/nand/raw/nand_samsung.c    |  20 ++
 include/linux/mtd/rawnand.h            |  13 +-
 10 files changed, 327 insertions(+), 396 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/nand_common_spl.c
 create mode 100644 drivers/mtd/nand/raw/nand_common_spl.h

Comments

Dario Binacchi July 27, 2022, 2:45 p.m. UTC | #1
Hi Michael,

On Wed, Jul 27, 2022 at 11:37 AM Michael Trimarchi
<michael@amarulasolutions.com> wrote:
>
> Another series that move the mtd stack to be more similar to the linux
> one. This series include even the merging of the spl part of mxs and
> mt7621 in order to create a common layer for new driver and avoid
> duplication and small fixes in mxs nand
>
> Michael Trimarchi (7):
>   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
>   mtd: nand: Fix ecc in mxs_nand_spl onfi mode
>   mtd: nand: mxs_nand_spl Fix loop exit condition
>   mtd: nand: Add a common spl layer for nand subsystem
>
>  drivers/mtd/nand/raw/Makefile          |   4 +-
>  drivers/mtd/nand/raw/mt7621_nand.c     |   9 +-
>  drivers/mtd/nand/raw/mt7621_nand_spl.c | 188 +------------------
>  drivers/mtd/nand/raw/mxs_nand_spl.c    | 190 ++-----------------
>  drivers/mtd/nand/raw/nand_base.c       |  37 ++--
>  drivers/mtd/nand/raw/nand_common_spl.c | 245 +++++++++++++++++++++++++
>  drivers/mtd/nand/raw/nand_common_spl.h |  15 ++
>  drivers/mtd/nand/raw/nand_ids.c        |   2 +-
>  drivers/mtd/nand/raw/nand_samsung.c    |  20 ++
>  include/linux/mtd/rawnand.h            |  13 +-
>  10 files changed, 327 insertions(+), 396 deletions(-)
>  create mode 100644 drivers/mtd/nand/raw/nand_common_spl.c
>  create mode 100644 drivers/mtd/nand/raw/nand_common_spl.h
>
> --
> 2.34.1
>

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

Regards,
Dario