[PATCH 0/8] mtd: work on mtdraw

Sascha Hauer s.hauer at pengutronix.de
Fri Sep 21 04:18:12 PDT 2018

I did several cleanups on the mtdraw device until I finally found the
bug that nagged me. The alignment check when writing is wrong. On write
entry we have to check if the offset is raw page size aligned and not
writesize aligned. With that I could successfully use fastboot to write
a raw image to NAND.

Sascha Hauer (8):
  mtd: mtdraw: Simplify error path
  mtd: mtdraw: use dev_* for printing
  mtd: mtdraw: do not write empty buffers
  mtd: mtdraw: pass mtdraw around
  mtd: mtdraw: add raw page size to private data
  mtd: mtdraw: fail when writing fails
  mtd: mtdraw: replace "block" with "page"
  mtd: mtdraw: fix wrong alignment check

 drivers/mtd/mtdraw.c | 124 +++++++++++++++++++++----------------------
 1 file changed, 62 insertions(+), 62 deletions(-)


More information about the barebox mailing list