All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] An alternative to SPI NAND
@ 2015-01-08  0:47 ` Peter Pan 潘栋 (peterpandong)
  0 siblings, 0 replies; 32+ messages in thread
From: Peter Pan 潘栋 (peterpandong) @ 2015-01-08  0:47 UTC (permalink / raw)
  To: dwmw2, Brian Norris, Ezequiel Garcia
  Cc: linux-kernel, linux-mtd, Qi Wang 王起 (qiwang),
	Frank Liu 刘群 (frankliu),
	Melanie Zhang 张燕 (melaniezhang),
	Peter Pan 潘栋 (peterpandong)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 3055 bytes --]

This patchset is an alternative to Ezequiel's series[1].

This patchset separate SPI NAND code and Parallel NAND code, make SPI NAND have
its own spi_nand_scan, read, write, BBM mechanism, so that it would be better
for code maintenance in the future.   

TODO - 
      1. This patchset is validated only on Micron SPI NAND device MT29F2G01AAAED
      by run mtdtest program, and mount UBIFS on SPI NAND, further testing on 
      other Manufactory SPI NAND is needed.
      2. Although this patchset's framework separate SPI NAND and Parall NAND code, 
      some code do is common that can share by SPI NAND and Parallel NAND at same 
      time. For view the code structure might be more make sense as below diagram, 
      so that SPI NAND and Parallel NAND can have their own specific code and meanwhile 
      can share Common code. But may bring a lot change for current code, I am glad 
      to discuss this structure if any guys are interested.

      |------------------------------------------------------------------|
      |                         MTD/NAND folder                         |
      | |-------------|  |---------------|  |-------------------------|  |
      | | Common code |  | SPI NAND code |  |  Parallel NAND code     |  |
      | |-------------|  | --------------|  |-------------------------|  |
      | | Nand_bch.c  |  |spi_nand_base.c|  |  parallel_nand_base.c   |  |  
      | | Nand_ecc.c  |  |   .........   |  |specific controllers code|  |
      | | Nand_bbt.c  |  |               |  |                         |  |
      |------------------------------------------------------------------|


This series is based on v3.19-rc1.
[1] http://lists.infradead.org/pipermail/linux-mtd/2014-December/056763.html

Peter Pan (3):
  mtd: spi-nand framework                   
  mtd: spi-nand: support spi-nand devices
  mtd: spi-nand: add devicetree binding

Documentation/devicetree/bindings/mtd/spi-nand.txt |   22 +
drivers/mtd/Kconfig                                |    2 +
drivers/mtd/Makefile                               |    1 +
drivers/mtd/spi-nand/Kconfig                       |    7 +
drivers/mtd/spi-nand/Makefile                      |    3 +
drivers/mtd/spi-nand/spi-nand-base.c               | 2034 ++++++++++++++++++++
drivers/mtd/spi-nand/spi-nand-bbt.c                | 1279 ++++++++++++
drivers/mtd/spi-nand/spi-nand-device.c             |  281 +++
include/linux/mtd/spi-nand.h                       |  317 +++
9 files changed, 3946 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mtd/spi-nand.txt
create mode 100644 drivers/mtd/spi-nand/Kconfig
create mode 100644 drivers/mtd/spi-nand/Makefile
create mode 100644 drivers/mtd/spi-nand/spi-nand-base.c
create mode 100644 drivers/mtd/spi-nand/spi-nand-bbt.c
create mode 100644 drivers/mtd/spi-nand/spi-nand-device.c
create mode 100644 include/linux/mtd/spi-nand.h

-- 
1.9.1
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

end of thread, other threads:[~2015-02-26 18:42 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-08  0:47 [PATCH 0/3] An alternative to SPI NAND Peter Pan 潘栋 (peterpandong)
2015-01-08  0:47 ` Peter Pan 潘栋 (peterpandong)
2015-01-08  1:03 ` Brian Norris
2015-01-08  1:03   ` Brian Norris
2015-01-08  2:45   ` Qi Wang 王起 (qiwang)
2015-01-08  2:45     ` Qi Wang 王起 (qiwang)
2015-01-08  3:27     ` Ezequiel Garcia
2015-01-08  3:27       ` Ezequiel Garcia
2015-01-12 15:10       ` Qi Wang 王起 (qiwang)
2015-01-12 15:10         ` Qi Wang 王起 (qiwang)
2015-01-20 10:35         ` Ezequiel Garcia
2015-01-20 10:35           ` Ezequiel Garcia
2015-01-21  2:11           ` Qi Wang 王起 (qiwang)
2015-01-21  2:11             ` Qi Wang 王起 (qiwang)
2015-01-29 18:03             ` Ezequiel Garcia
2015-01-29 18:03               ` Ezequiel Garcia
2015-01-30  0:57               ` Peter Pan 潘栋 (peterpandong)
2015-01-30  0:57                 ` Peter Pan 潘栋 (peterpandong)
2015-01-30 11:47                 ` Ezequiel Garcia
2015-01-30 11:47                   ` Ezequiel Garcia
2015-01-31  7:02                   ` Brian Norris
2015-01-31  7:02                     ` Brian Norris
2015-02-02  1:53                     ` Peter Pan 潘栋 (peterpandong)
2015-02-02  1:53                       ` Peter Pan 潘栋 (peterpandong)
2015-02-23 15:32                     ` Ezequiel Garcia
2015-02-23 15:32                       ` Ezequiel Garcia
2015-02-24  3:54                       ` Brian Norris
2015-02-24  3:54                         ` Brian Norris
2015-02-26 18:39                         ` Ezequiel Garcia
2015-02-26 18:39                           ` Ezequiel Garcia
2015-01-20  6:15   ` Peter Pan 潘栋 (peterpandong)
2015-01-20  6:15     ` Peter Pan 潘栋 (peterpandong)

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.