All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/15] mtd: rawnand: 5th batch of cleanups
@ 2019-03-04 20:15 ` Miquel Raynal
  0 siblings, 0 replies; 66+ messages in thread
From: Miquel Raynal @ 2019-03-04 20:15 UTC (permalink / raw)
  To: Boris Brezillon, Richard Weinberger, David Woodhouse,
	Brian Norris, Marek Vasut, Tudor Ambarus
  Cc: Vignesh R, Tudor Ambarus, Julien Su, Schrempf Frieder,
	Masahiro Yamada, linux-mtd, Thomas Petazzoni, Miquel Raynal,
	Mason Yang, linux-arm-kernel

Hello,

This time I am the one who send the cleanups on behalf of Boris, I
just took his patches because I needed them for my 'generic ECC
engine' work. Between this cleanup series and the ECC engine series
there will be an additional one, to prepare the field.

Patch 1 adds a field to the memorg structure, patch 2 & 3 add helpers
in the raw NAND core, following patches are general cleanups in the
raw NAND area that prepares the use of the (generic) NAND core shared
between raw NANDs and SPI-NANDs and finally a few nand_chip entries
are dropped.

Regards,
Miquèl

Changs for v2
=============
* Fixed the inconsistencies between patch 7 and 13 pointed out by Frieder.
* Fixed the derivation of memorg->pages_per_eraseblock.
* Added Frieder Reviewed-by tags.


Boris Brezillon (15):
  mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg
  mtd: nand: Add a helper returning the number of eraseblocks per target
  mtd: nand: Add a helper to retrieve the number of pages per target
  mtd: spinand: Implement mtd->_max_bad_blocks
  mtd: rawnand: Use nand_to_mtd() in nand_{set,get}_flash_node()
  mtd: rawnand: Prepare things to reuse the generic NAND layer
  mtd: rawnand: Fill memorg during detection
  mtd: rawnand: Initialize the nand_device object
  mtd: rawnand: Provide a helper to get chip->data_buf
  mtd: rawnand: Move all page cache related fields to a sub-struct
  mtd: rawnand: Use nanddev_mtd_max_bad_blocks()
  mtd: rawnand: Get rid of chip->bits_per_cell
  mtd: rawnand: Get rid of chip->chipsize
  mtd: rawnand: Get rid of chip->numchips
  mtd: rawnand: Get rid of chip->ecc_{strength,step}_ds

 drivers/mtd/nand/core.c                       |  34 +++
 drivers/mtd/nand/raw/Kconfig                  |   1 +
 drivers/mtd/nand/raw/atmel/nand-controller.c  |   8 +-
 .../mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c  |   2 +-
 drivers/mtd/nand/raw/brcmnand/brcmnand.c      |   7 +-
 drivers/mtd/nand/raw/denali.c                 |   6 +-
 drivers/mtd/nand/raw/diskonchip.c             |   6 +-
 drivers/mtd/nand/raw/fsl_elbc_nand.c          |   4 +-
 drivers/mtd/nand/raw/fsl_ifc_nand.c           |   4 +-
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c    |  17 +-
 drivers/mtd/nand/raw/hisi504_nand.c           |   2 +-
 drivers/mtd/nand/raw/internals.h              |   2 +-
 drivers/mtd/nand/raw/jz4740_nand.c            |   7 +-
 drivers/mtd/nand/raw/marvell_nand.c           |  49 ++--
 drivers/mtd/nand/raw/mtk_nand.c               |   4 +-
 drivers/mtd/nand/raw/nand_amd.c               |  11 +-
 drivers/mtd/nand/raw/nand_base.c              | 253 +++++++++++-------
 drivers/mtd/nand/raw/nand_bbt.c               |  45 ++--
 drivers/mtd/nand/raw/nand_esmt.c              |  10 +-
 drivers/mtd/nand/raw/nand_hynix.c             |  90 ++++---
 drivers/mtd/nand/raw/nand_jedec.c             |  27 +-
 drivers/mtd/nand/raw/nand_micron.c            |  14 +-
 drivers/mtd/nand/raw/nand_onfi.c              |  35 ++-
 drivers/mtd/nand/raw/nand_samsung.c           |  42 +--
 drivers/mtd/nand/raw/nand_toshiba.c           |  19 +-
 drivers/mtd/nand/raw/nandsim.c                |  11 +-
 drivers/mtd/nand/raw/qcom_nandc.c             |   8 +-
 drivers/mtd/nand/raw/sh_flctl.c               |   9 +-
 drivers/mtd/nand/raw/sunxi_nand.c             |  15 +-
 drivers/mtd/nand/raw/tegra_nand.c             |   8 +-
 drivers/mtd/nand/spi/core.c                   |   1 +
 drivers/mtd/nand/spi/gigadevice.c             |   6 +-
 drivers/mtd/nand/spi/macronix.c               |   4 +-
 drivers/mtd/nand/spi/micron.c                 |   2 +-
 drivers/mtd/nand/spi/toshiba.c                |   2 +-
 drivers/mtd/nand/spi/winbond.c                |   4 +-
 include/linux/mtd/nand.h                      |  32 ++-
 include/linux/mtd/rawnand.h                   |  97 ++++---
 38 files changed, 548 insertions(+), 350 deletions(-)

-- 
2.19.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2019-06-06 13:06 UTC | newest]

Thread overview: 66+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04 20:15 [PATCH v2 00/15] mtd: rawnand: 5th batch of cleanups Miquel Raynal
2019-03-04 20:15 ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 01/15] mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-06-04  8:01   ` Emil Lenngren
2019-06-04  8:01     ` Emil Lenngren
2019-06-06  8:27     ` Schrempf Frieder
2019-06-06  8:27       ` Schrempf Frieder
2019-06-06  8:39       ` Boris Brezillon
2019-06-06  8:39         ` Boris Brezillon
2019-06-06  8:52         ` Schrempf Frieder
2019-06-06  8:52           ` Schrempf Frieder
2019-06-06  8:57           ` Schrempf Frieder
2019-06-06  8:57             ` Schrempf Frieder
2019-06-06  9:05             ` Boris Brezillon
2019-06-06  9:05               ` Boris Brezillon
2019-06-06 13:06       ` Emil Lenngren
2019-06-06 13:06         ` Emil Lenngren
2019-03-04 20:15 ` [PATCH v2 02/15] mtd: nand: Add a helper returning the number of eraseblocks per target Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 03/15] mtd: nand: Add a helper to retrieve the number of pages " Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 04/15] mtd: spinand: Implement mtd->_max_bad_blocks Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 05/15] mtd: rawnand: Use nand_to_mtd() in nand_{set, get}_flash_node() Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 06/15] mtd: rawnand: Prepare things to reuse the generic NAND layer Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 07/15] mtd: rawnand: Fill memorg during detection Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-21  9:03   ` Schrempf Frieder
2019-03-21  9:03     ` Schrempf Frieder
2019-03-04 20:15 ` [PATCH v2 08/15] mtd: rawnand: Initialize the nand_device object Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 09/15] mtd: rawnand: Provide a helper to get chip->data_buf Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 10/15] mtd: rawnand: Move all page cache related fields to a sub-struct Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 11/15] mtd: rawnand: Use nanddev_mtd_max_bad_blocks() Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 12/15] mtd: rawnand: Get rid of chip->bits_per_cell Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-04 20:15 ` [PATCH v2 13/15] mtd: rawnand: Get rid of chip->chipsize Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-03-21  9:03   ` Schrempf Frieder
2019-03-21  9:03     ` Schrempf Frieder
2019-03-04 20:15 ` [PATCH v2 14/15] mtd: rawnand: Get rid of chip->numchips Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-05-21  6:59   ` Sascha Hauer
2019-05-21  6:59     ` Sascha Hauer
2019-05-21  7:33     ` Boris Brezillon
2019-05-21  7:33       ` Boris Brezillon
2019-05-21  7:43       ` Boris Brezillon
2019-05-21  7:43         ` Boris Brezillon
2019-05-21  7:51       ` Boris Brezillon
2019-05-21  7:51         ` Boris Brezillon
2019-05-21  7:58         ` Sascha Hauer
2019-05-21  7:58           ` Sascha Hauer
2019-05-21  8:01           ` Boris Brezillon
2019-05-21  8:01             ` Boris Brezillon
2019-05-21  7:56       ` Sascha Hauer
2019-05-21  7:56         ` Sascha Hauer
2019-03-04 20:15 ` [PATCH v2 15/15] mtd: rawnand: Get rid of chip->ecc_{strength, step}_ds Miquel Raynal
2019-03-04 20:15   ` Miquel Raynal
2019-04-01 15:28 ` [PATCH v2 00/15] mtd: rawnand: 5th batch of cleanups Miquel Raynal
2019-04-01 15:28   ` Miquel Raynal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.