[U-Boot] [PATCH v4 00/17] nand: remove direct acces to nand_info array

Grygorii Strashko grygorii.strashko at ti.com
Tue Jun 27 00:12:50 UTC 2017


This is a preparation required for adding Nand DM support. This series
introduces new API get_nand_dev_by_index() to avoid direct acces to nand_info
array and updates u-boot to use it. As result, nand_info array is made static
in the last patch.

Changes in v4:
- rebased on top of git://git.denx.de/u-boot.git/master
- added patch for arch/arm/cpu/armv8/fsl-layerscape/ppa.c
- added "Reviewed-by" tags

Changes in v3:
- preparation patches separated from original series.
- fixed BeagleBoard-xM boot failure which has Nand enabled, but no Nand
  devices are presented on board physically.
- all current direct users were converted to use get_nand_dev_by_index() and
  nand_info array was made static finally.

link on v3:
- https://www.mail-archive.com/u-boot@lists.denx.de/msg238797.html
link on v2:
- https://www.mail-archive.com/u-boot@lists.denx.de/msg237747.html

Grygorii Strashko (17):
  common: env_nand: use get_nand_dev_by_index()
  dfu: dfu_nand: use get_nand_dev_by_index()
  cmd: bootm: use get_nand_dev_by_index()
  cmd: jffs2: use get_nand_dev_by_index()
  common: use get_nand_dev_by_index()
  fs: use get_nand_dev_by_index()
  cmd: nand: remove direct access to struct mtd_info->priv
  net: phy: cortina: use get_nand_dev_by_index()
  net: fm: use get_nand_dev_by_index()
  mtd: nand: drv: use get_nand_dev_by_index()
  cmd: mvebu: bubt: use get_nand_dev_by_index()
  board: atmel: use get_nand_dev_by_index()
  board: ronetix: use get_nand_dev_by_index()
  board: BuR: use get_nand_dev_by_index()
  board: toradex: use get_nand_dev_by_index()
  armv8: fsl-layerscape: use get_nand_dev_by_index()
  mtd: nand: make nand_info array static

Mugunthan V N (1):
  cmd: nand: abstract global variable usage for dm conversion

 arch/arm/cpu/armv8/fsl-layerscape/ppa.c         | 15 +++---
 board/BuR/common/common.c                       |  3 +-
 board/atmel/at91sam9261ek/at91sam9261ek.c       |  2 +-
 board/atmel/at91sam9263ek/at91sam9263ek.c       |  2 +-
 board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c |  2 +-
 board/atmel/at91sam9n12ek/at91sam9n12ek.c       |  2 +-
 board/atmel/at91sam9rlek/at91sam9rlek.c         |  2 +-
 board/atmel/at91sam9x5ek/at91sam9x5ek.c         |  2 +-
 board/atmel/sama5d3xek/sama5d3xek.c             |  2 +-
 board/atmel/sama5d4_xplained/sama5d4_xplained.c |  2 +-
 board/atmel/sama5d4ek/sama5d4ek.c               |  2 +-
 board/ronetix/pm9261/pm9261.c                   |  2 +-
 board/ronetix/pm9263/pm9263.c                   |  2 +-
 board/toradex/colibri_t20/colibri_t20.c         |  2 +-
 board/toradex/common/tdx-cfg-block.c            | 12 +++--
 cmd/bootm.c                                     |  2 +-
 cmd/jffs2.c                                     |  7 +--
 cmd/mvebu/bubt.c                                | 14 +++--
 cmd/nand.c                                      | 69 ++++++++++++++-----------
 common/env_nand.c                               | 33 +++++++-----
 common/fb_nand.c                                |  2 +-
 common/splash_source.c                          |  5 +-
 drivers/dfu/dfu_nand.c                          | 12 ++---
 drivers/mtd/nand/fsmc_nand.c                    |  2 +-
 drivers/mtd/nand/nand.c                         | 23 ++++++---
 drivers/mtd/nand/omap_gpmc.c                    |  7 +--
 drivers/mtd/nand/zynq_nand.c                    |  2 +-
 drivers/net/fm/fm.c                             |  3 +-
 drivers/net/phy/cortina.c                       |  3 +-
 fs/jffs2/jffs2_1pass.c                          |  9 +++-
 fs/jffs2/jffs2_nand_1pass.c                     |  6 ++-
 fs/yaffs2/yaffs_uboot_glue.c                    |  8 ++-
 include/nand.h                                  | 10 +++-
 33 files changed, 162 insertions(+), 109 deletions(-)

-- 
2.10.1



More information about the U-Boot mailing list