public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: nand: automate NAND timings selection
@ 2015-10-23 11:03 Boris Brezillon
  2015-10-23 11:03 ` [PATCH 1/2] " Boris Brezillon
  2015-10-23 11:03 ` [PATCH 2/2] mtd: nand: sunxi: switch from manual to automated timing config Boris Brezillon
  0 siblings, 2 replies; 12+ messages in thread
From: Boris Brezillon @ 2015-10-23 11:03 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris, linux-mtd
  Cc: linux-kernel, Maxime Ripard, linux-sunxi, Boris Brezillon

Hello,

This series aims at automating the NAND timings selection which is
currently supposed to be done in each NAND controller driver, thus
simplifying drivers implementation.

Patch 1 also opens the door to DDR NAND support, though setting DDR
timings is currently not supported.

Note that patch 2 is given here as an example of how patch 1 simplifies
things, but won't apply cleanly on mtd-next (it's based on top of other
changes I haven't submitted yet).

Best Regards,

Boris

Boris Brezillon (2):
  mtd: nand: automate NAND timings selection
  mtd: nand: sunxi: switch from manual to automated timing config

 drivers/mtd/nand/nand_base.c  | 189 +++++++++++++++++++++++++++++++++++++++++-
 drivers/mtd/nand/sunxi_nand.c |  72 ++++------------
 include/linux/mtd/nand.h      | 115 ++++++++++++++-----------
 3 files changed, 270 insertions(+), 106 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 12+ messages in thread
* mtd: nand: automate NAND timings selection
@ 2016-09-02 12:42 Sascha Hauer
  2016-09-02 12:42 ` [PATCH 1/2] " Sascha Hauer
  0 siblings, 1 reply; 12+ messages in thread
From: Sascha Hauer @ 2016-09-02 12:42 UTC (permalink / raw)
  To: linux-mtd; +Cc: linux-arm-kernel, Boris Brezillon, kernel

This series aims at automating the NAND timings selection which is
currently supposed to be done in each NAND controller driver, thus
simplifying drivers implementation.

Patch 1 also opens the door to DDR NAND support, though setting DDR
timings is currently not supported.

I picked this up from earlier work from Boris Brezillon
(https://lkml.org/lkml/2015/10/23/179). Changes since the initial
posting from Boris:

- Integrate Feedback from Ezequiel Garcia
- When iterating over the chips calling onfi_set_features() for each
  bail out when any of the calls fail, not only the last one.
- When one of the onfi_set_features() calls fail then reset the chip
  afterwards.
- Drop Sunxi example, add patch for the mxc_nand controller instead.

Sascha

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

end of thread, other threads:[~2016-09-06  9:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23 11:03 [PATCH 0/2] mtd: nand: automate NAND timings selection Boris Brezillon
2015-10-23 11:03 ` [PATCH 1/2] " Boris Brezillon
2015-11-02  0:37   ` Ezequiel Garcia
2015-11-02  8:39     ` Boris Brezillon
2015-10-23 11:03 ` [PATCH 2/2] mtd: nand: sunxi: switch from manual to automated timing config Boris Brezillon
  -- strict thread matches above, loose matches on Subject: below --
2016-09-02 12:42 mtd: nand: automate NAND timings selection Sascha Hauer
2016-09-02 12:42 ` [PATCH 1/2] " Sascha Hauer
2016-09-05  6:51   ` Boris Brezillon
2016-09-05 11:09     ` Sascha Hauer
2016-09-05 13:26       ` Boris Brezillon
2016-09-06  8:23   ` Sascha Hauer
2016-09-06  8:41     ` Boris Brezillon
2016-09-06  9:30       ` Sascha Hauer

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