lkml.org 
[lkml]   [2020]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/3] mtd: spinand: Fix reading and writing of bad block markers
Date
From: Frieder Schrempf <frieder.schrempf@kontron.de>

We were pointed to the issue of bad block markers not being saved to flash on
one of our boards with SPI NAND flash. After a bit of investigation it seems
like there are two overlapping bugs in the original framework that cause silent
failure when writing a bad block marker.

This set contains fixes for both of these issues and one more fix (patch 2) that
should not affect the actual behavior of the driver.

Changes in v3:
* Patch 1: Correct "SPI MEM" to "SPI NAND" in commit message
* Patch 3: Fix the subject line and the commit message
* Patch 3: Add Boris' R-b tag

Changes in v2:
* Patch 1: Incorporate small improvements proposed by Boris
* Patch 1: Add Boris' R-b tag
* Patch 2: Add Boris' R-b tag
* Patch 3: Instead of waiting for the erase operation to finish,
just don't do an erase at all, as it is not needed.

Frieder Schrempf (3):
mtd: spinand: Stop using spinand->oobbuf for buffering bad block
markers
mtd: spinand: Explicitly use MTD_OPS_RAW to write the bad block marker
to OOB
mtd: spinand: Do not erase the block before writing a bad block marker

drivers/mtd/nand/spi/core.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)

--
2.17.1

\
 
 \ /
  Last update: 2020-02-18 11:05    [W:0.042 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site