[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220415034844.1024538-1-gch981213@gmail.com>
Date: Fri, 15 Apr 2022 11:48:41 +0800
From: Chuanhong Guo <gch981213@...il.com>
To: linux-mtd@...ts.infradead.org
Cc: Chuanhong Guo <gch981213@...il.com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Patrice Chotard <patrice.chotard@...s.st.com>,
Boris Brezillon <boris.brezillon@...labora.com>,
Christophe Kerello <christophe.kerello@...s.st.com>,
Mark Brown <broonie@...nel.org>,
Daniel Palmer <daniel@...f.com>,
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH v2 0/3] mtd: spinand: add support for detection with param page
This patchset adds support for spi-nand detection using parameter page.
This helps dealing with future JEDEC ID conflicts introduced by crazy
vendors. Also, the added ability to auto-detect chip capacity can help
reducing number of entries in our spi-nand id table.
Change since v1: extract common functions from raw nand
Chuanhong Guo (3):
mtd: nand: extract some onfi functions to nandcore
mtd: spinand: add support for detection with param page
mtd: spinand: probe Winbond W25N01GV/W using param page
drivers/mtd/nand/Makefile | 2 +-
drivers/mtd/nand/onfi.c | 115 ++++++++++++++++
drivers/mtd/nand/raw/internals.h | 1 -
drivers/mtd/nand/raw/nand_base.c | 18 ---
drivers/mtd/nand/raw/nand_jedec.c | 4 +-
drivers/mtd/nand/raw/nand_onfi.c | 70 +---------
drivers/mtd/nand/spi/Makefile | 2 +-
drivers/mtd/nand/spi/core.c | 23 ++--
drivers/mtd/nand/spi/onfi.c | 219 ++++++++++++++++++++++++++++++
drivers/mtd/nand/spi/winbond.c | 25 ++--
include/linux/mtd/onfi.h | 8 ++
include/linux/mtd/spinand.h | 53 ++++++++
12 files changed, 431 insertions(+), 109 deletions(-)
create mode 100644 drivers/mtd/nand/onfi.c
create mode 100644 drivers/mtd/nand/spi/onfi.c
--
2.35.1
Powered by blists - more mailing lists