public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Convert FSMC NAND controller driver to ->exec_op()
@ 2018-02-16 14:22 Miquel Raynal
  2018-02-16 14:22 ` [PATCH v2 1/2] mtd: nand: fsmc: get rid of IO_ADDR_[R|W] Miquel Raynal
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Miquel Raynal @ 2018-02-16 14:22 UTC (permalink / raw)
  To: Boris Brezillon, Richard Weinberger, David Woodhouse,
	Brian Norris, Marek Vasut, Cyrille Pitchen
  Cc: linux-mtd, Miquel Raynal

Hello,

Now that the ->exec_op() interface has been merged in the NAND core,
convert the FSMC NAND controller driver to it.

A previous step involves getting rid of ->IO_ADDR_[R|W] across the
driver, which is almost entirely done in the first patch. Because the
driver still uses at that point the default implementations of
->read/write_byte/word(), some references are still present but are
removed as soon as the driver is moved to ->exec_op(), when this
dependency disappears.

Best regards,
Miquèl


Changes since v1:
=================

- Forgot about the NAND unique ID for now, this will need a deeper
  rework of the MTD stack and is very (ONFI-)NAND-specific.
- Split the migration of FSMC driver to ->exec_op() into two patches,
  one to get rid of ->IO_ADDR_[R|W], the other to implement ->exec_op()
  and ->select_chip() which is also needed.
- Got rid of the additional ->regs entry in the FSMC structure, using
  the existing entry ->regs_va instead.


Miquel Raynal (2):
  mtd: nand: fsmc: get rid of IO_ADDR_[R|W]
  mtd: nand: fsmc: use ->exec_op()

 drivers/mtd/nand/fsmc_nand.c | 242 ++++++++++++++++++++++++-------------------
 1 file changed, 137 insertions(+), 105 deletions(-)

-- 
2.14.1

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

end of thread, other threads:[~2018-02-18  7:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-16 14:22 [PATCH v2 0/2] Convert FSMC NAND controller driver to ->exec_op() Miquel Raynal
2018-02-16 14:22 ` [PATCH v2 1/2] mtd: nand: fsmc: get rid of IO_ADDR_[R|W] Miquel Raynal
2018-02-16 14:22 ` [PATCH v2 2/2] mtd: nand: fsmc: use ->exec_op() Miquel Raynal
2018-02-18  7:59 ` [PATCH v2 0/2] Convert FSMC NAND controller driver to ->exec_op() Boris Brezillon

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