linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mtd: rawnand: Support bad block markers in first, second or last page
@ 2018-12-17 15:48 Schrempf Frieder
  2018-12-17 15:49 ` [PATCH 1/3] " Schrempf Frieder
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Schrempf Frieder @ 2018-12-17 15:48 UTC (permalink / raw)
  To: boris.brezillon@bootlin.com, miquel.raynal@bootlin.com,
	richard@nod.at
  Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
	Schrempf Frieder

From: Frieder Schrempf <frieder.schrempf@kontron.de>

Currently supported bad block marker positions within the block are:
* in first page only
* in last page only
* in first or second page

Some ESMT NANDs are known to have been shipped by the manufacturer
with bad block markers in the first or last page, instead of the
first or second page.

Also the datasheets for Cypress/Spansion/AMD NANDs claim that the
first, second *and* last page needs to be checked.

Therefore we make it possible to set NAND_BBT_SCAN2NDPAGE and
NAND_BBT_SCANLASTPAGE at the same time to scan/set all three pages.

This series also contains patches for AMD/Spansion/Cypress and ESMT
chips to enable both flags at the same time.

Frieder Schrempf (3):
  mtd: rawnand: Support bad block markers in first, second or last page
  mtd: rawnand: ESMT: Also use the last page for bad block markers
  mtd: rawnand: AMD: Also use the last page for bad block markers

 drivers/mtd/nand/raw/internals.h |  1 +
 drivers/mtd/nand/raw/nand_amd.c  |  8 +++-
 drivers/mtd/nand/raw/nand_base.c | 72 ++++++++++++++++++++++++++---------
 drivers/mtd/nand/raw/nand_bbt.c  | 30 +++++++--------
 drivers/mtd/nand/raw/nand_esmt.c |  9 ++++-
 5 files changed, 83 insertions(+), 37 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-12-20 15:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-17 15:48 [PATCH 0/3] mtd: rawnand: Support bad block markers in first, second or last page Schrempf Frieder
2018-12-17 15:49 ` [PATCH 1/3] " Schrempf Frieder
2018-12-20 13:59   ` Boris Brezillon
2018-12-20 14:07     ` Boris Brezillon
2018-12-20 14:35     ` Schrempf Frieder
2018-12-20 15:42       ` Boris Brezillon
2018-12-17 15:49 ` [PATCH 2/3] mtd: rawnand: ESMT: Also use the last page for bad block markers Schrempf Frieder
2018-12-17 15:49 ` [PATCH 3/3] mtd: rawnand: AMD: " Schrempf Frieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).