mbox series

[0/3] mtd: spinand: Fix reading and writing of bad block markers

Message ID 20200211163452.25442-1-frieder.schrempf@kontron.de
Headers show
Series mtd: spinand: Fix reading and writing of bad block markers | expand

Message

Frieder Schrempf Feb. 11, 2020, 4:35 p.m. UTC
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.

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: Wait for the erase op to finish before writing a bad
    block marker

 drivers/mtd/nand/spi/core.c | 67 +++++++++++++++++++------------------
 1 file changed, 34 insertions(+), 33 deletions(-)