mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 00/16] NAND update (1st step)
@ 2018-10-28 21:19 Ladislav Michl
  2018-10-28 21:21 ` [PATCH 01/16] mtd: nand: refactor chip->block_markbad interface Ladislav Michl
                   ` (15 more replies)
  0 siblings, 16 replies; 21+ messages in thread
From: Ladislav Michl @ 2018-10-28 21:19 UTC (permalink / raw)
  To: barebox

The ultimate goal we are still quite far away is to update MTD subsystem
to something more recent. As it is rather hard to accomplish by simply
importing core files from linux-4.19 as there are many NAND drivers
not even present in mainline kernel in current (barebox) form, let's
choose incremental updating.

This patchset is rather selfish (and I'm sorry for that); its sole
purpose is being able to use Toshiba NAND (needing 8bit ECC) on
AT91SAM9G20 based board. This is also the only board I was able to
do runtime testing. To do this "mtd: atmel_nand: Add per board ECC
setup" patch is introduced. This shall be considered temporary
solution. As MTD core will be updated, we can import rewritten
Atmel NAND driver.

There more in queue, most notably mtd_ooblayout_ops conversion,
but let's focus on this serie first :)

Special thanks goes to Boris Brezillon for guiding me though pitfalls
of NAND devices while debugging Toshiba NAND support in Barebox.

Comments (or even help with fixes) very welcome, this will be likely
a bit painfull update.

Ladislav Michl (16):
  mtd: nand: refactor chip->block_markbad interface
  mtd: nand: remove multiplied-by-2 block logic
  mtd: nand: hide in-memory BBT implementation details
  mtd: nand: remove NAND_BBT_SCANEMPTY
  mtd: nand: Request strength instead of bytes for soft BCH
  mtd: atmel_nand: Add per board ECC setup
  mtd: nand: simplify nand_bch_init() usage
  mtd: nand_bbt: kill NAND_BBT_SCANALLPAGES
  mtd: nand_bbt: handle error case for nand_create_badblock_pattern()
  mtd: nand_bbt: make nand_scan_bbt() static
  mtd: nand_bbt: unify/fix error handling in nand_scan_bbt()
  mtd: nand_bbt: Move BBT block selection logic out of write_bbt()
  mtd: nand_bbt: scan for next free bbt block if writing bbt fails
  mtd: nand: Kill the chip->scan_bbt() hook
  mtd: nand: Kill cellinfo
  mtd: nand: detect OOB size for Toshiba 24nm raw SLC

 arch/arm/mach-at91/include/mach/board.h |   2 +
 drivers/mtd/nand/atmel_nand.c           |   3 +
 drivers/mtd/nand/nand_base.c            | 274 +++++++++--------
 drivers/mtd/nand/nand_bbt.c             | 385 ++++++++++++++----------
 drivers/mtd/nand/nand_bch.c             |  27 +-
 drivers/mtd/nand/nand_imx_bbm.c         |   2 +-
 drivers/mtd/nand/nand_mxs.c             |  27 +-
 drivers/mtd/nand/nand_omap_gpmc.c       |   1 -
 include/linux/mtd/bbm.h                 |   4 -
 include/linux/mtd/nand.h                |  13 +-
 include/linux/mtd/nand_bch.h            |   8 +-
 11 files changed, 415 insertions(+), 331 deletions(-)

-- 
2.19.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-01-21  8:32 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-28 21:19 [PATCH 00/16] NAND update (1st step) Ladislav Michl
2018-10-28 21:21 ` [PATCH 01/16] mtd: nand: refactor chip->block_markbad interface Ladislav Michl
2018-10-28 21:21 ` [PATCH 02/16] mtd: nand: remove multiplied-by-2 block logic Ladislav Michl
2018-10-28 21:22 ` [PATCH 03/16] mtd: nand: hide in-memory BBT implementation details Ladislav Michl
2018-10-29 10:07   ` Ladislav Michl
2018-10-29 11:43     ` Ladislav Michl
2018-10-30  9:07       ` Sascha Hauer
2018-10-28 21:22 ` [PATCH 04/16] mtd: nand: remove NAND_BBT_SCANEMPTY Ladislav Michl
2018-10-28 21:22 ` [PATCH 05/16] mtd: nand: Request strength instead of bytes for soft BCH Ladislav Michl
2018-10-28 21:23 ` [PATCH 06/16] mtd: atmel_nand: Add per board ECC setup Ladislav Michl
2018-10-28 21:23 ` [PATCH 07/16] mtd: nand: simplify nand_bch_init() usage Ladislav Michl
2018-10-28 21:24 ` [PATCH 08/16] mtd: nand_bbt: kill NAND_BBT_SCANALLPAGES Ladislav Michl
2018-10-28 21:24 ` [PATCH 09/16] mtd: nand_bbt: handle error case for nand_create_badblock_pattern() Ladislav Michl
2018-10-28 21:25 ` [PATCH 10/16] mtd: nand_bbt: make nand_scan_bbt() static Ladislav Michl
2018-10-28 21:25 ` [PATCH 11/16] mtd: nand_bbt: unify/fix error handling in nand_scan_bbt() Ladislav Michl
2018-10-28 21:25 ` [PATCH 12/16] mtd: nand_bbt: Move BBT block selection logic out of write_bbt() Ladislav Michl
2018-10-28 21:26 ` [PATCH 13/16] mtd: nand_bbt: scan for next free bbt block if writing bbt fails Ladislav Michl
2018-10-28 21:26 ` [PATCH 14/16] mtd: nand: Kill the chip->scan_bbt() hook Ladislav Michl
2019-01-21  8:32   ` Sascha Hauer
2018-10-28 21:27 ` [PATCH 15/16] mtd: nand: Kill cellinfo Ladislav Michl
2018-10-28 21:27 ` [PATCH 16/16] mtd: nand: detect OOB size for Toshiba 24nm raw SLC Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox