Skip to content

mtd: maps: physmap cleanups

Boris Brezillon linux-devicetree linux-mtd lkml stable 2 versions – Applied

Status from this message: Queued to mtd/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 7 repliesApplied
  2. v114 patches 14 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/15mtd: maps: physmap: Add SPDX headerdrivers/mtd/maps/physmap.c+1 -00 replies
2/15mtd: maps: physmap: Rename ->map and ->mtd into ->maps and ->mtdsdrivers/mtd/maps/physmap.c+28 -270 replies
3/15mtd: maps: physmap: Use platform_get_resource() to retrieve iomem resourcesdrivers/mtd/maps/physmap.c+18 -110 replies
4/15mtd: maps: physmap: Use dev_notice() and a %pR specifierdrivers/mtd/maps/physmap.c+2 -30 replies
5/15mtd: maps: physmap: Use devm_ioremap_resource()drivers/mtd/maps/physmap.c+6 -170 replies
6/15mtd: maps: physmap: Remove the MAX_RESOURCES limitationdrivers/mtd/maps/physmap.c+27 -170 replies
7/15mtd: maps: physmap: Check mtd_device_{parse_register, unregister}() ret codedrivers/mtd/maps/physmap.c+11 -40 replies
8/15mtd: maps: physmap: Return -ENOMEM directly when info allocation failsdrivers/mtd/maps/physmap.c+2 -40 replies
9/15mtd: maps: physmap: Fix coding style issues reported by checkpatchdrivers/mtd/maps/physmap.c+18 -150 replies
10/15mtd: maps: Prepare merging of physmap and physmap_ofdrivers/mtd/maps/Makefile drivers/mtd/maps/physmap-core.c+2 -00 replies
11/15mtd: maps: Merge physmap_of.c into physmap-core.cdrivers/mtd/maps/Kconfig drivers/mtd/maps/Makefile drivers/mtd/maps/physmap-core.c +1 more+240 -4003 replies
12/15mtd: maps: Rename physmap_of_{versatile, gemini} into physmap-{versatile, gemini}drivers/mtd/maps/Kconfig drivers/mtd/maps/Makefile drivers/mtd/maps/physmap-core.c +4 more+10 -100 replies
13/15dt-binding: mtd: physmap: Document the addr-gpios propertyDocumentation/devicetree/bindings/mtd/mtd-physmap.txt+2 -02 replies
14/15mtd: maps: Merge gpio-addr-flash.c into physmap-core.cdrivers/mtd/maps/Kconfig drivers/mtd/maps/Makefile drivers/mtd/maps/gpio-addr-flash.c +1 more+157 -2940 replies
15/15mtd: maps: physmap: Invert logic on if/else branchdrivers/mtd/maps/physmap-core.c+10 -70 replies

Reviews trailers per patch

14 of 15 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRicardo Ribalda DelgadoLinus WalleijRob HerringHamish Martin
SeriesA-b
1/15R-b
2/15R-b
3/15R-b
4/15R-b
5/15R-b
6/15R-b
7/15R-b
8/15R-b
9/15R-b
10/15R-b
11/15R-b R-b
12/15R-b
13/15R-b R-b
14/15R-b T-b
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/15] mtd: maps: physmap cleanups

Hello,

This is an attempt at merging physmap_of.c, gpio-addr-flash.c and physmap.c. The rational behind this decision is code sharing and consistency with what's done in other parts of the kernel:

- physmap_of is just adding OF/DT support to the physmap logic, and we usually put that code in the pre-existing driver instead of creating a new one

- gpio-addr-flash is just an extension of the physmap logic which is needed when the platform does not have enough native ADDR lines to address the whole flash. Again, I think this core belongs in the physmap driver

Patches 1 to 9 are just cleanups, and are not really related to the merging of physmap_of and gpio-addr-flash into physmap.c.

Patch 10 to 13 are doing the actual merging work, and patch 14 is documenting the addr-gpios property that has been added to support the gpio-addr-flash on DT platforms.

Patch 15 is a cosmetic change proposed by Ricardo.

Regards,

Boris

Boris Brezillon (13):
mtd: maps: physmap: Add SPDX header
mtd: maps: physmap: Rename ->map and ->mtd into ->maps and ->mtds
mtd: maps: physmap: Use platform_get_resource() to retrieve iomem
resources
mtd: maps: physmap: Use dev_notice() and a %pR specifier
mtd: maps: physmap: Use devm_ioremap_resource()
mtd: maps: physmap: Remove the MAX_RESOURCES limitation
mtd: maps: physmap: Check mtd_device_{parse_register,unregister}() ret
code
mtd: maps: physmap: Return -ENOMEM directly when info allocation fails
mtd: maps: physmap: Fix coding style issues reported by checkpatch
mtd: maps: Prepare merging of physmap and physmap_of
mtd: maps: Merge physmap_of.c into physmap-core.c
mtd: maps: Rename physmap_of_{versatile,gemini} into

    physmap-{versatile,gemini}

mtd: maps: Merge gpio-addr-flash.c into physmap-core.c

Ricardo Ribalda Delgado (2):
dt-binding: mtd: physmap: Document the addr-gpios property
mtd: maps: physmap: Invert logic on if/else branch

 .../devicetree/bindings/mtd/mtd-physmap.txt        |   2 +
 drivers/mtd/maps/Kconfig                           |  27 +-
 drivers/mtd/maps/Makefile                          |  10 +-
 drivers/mtd/maps/gpio-addr-flash.c                 | 281 ---------
 drivers/mtd/maps/physmap-core.c                    | 655 +++++++++++++++++++++
 .../maps/{physmap_of_gemini.c => physmap-gemini.c} |   2 +-
 .../maps/{physmap_of_gemini.h => physmap-gemini.h} |   2 +-
 ...{physmap_of_versatile.c => physmap-versatile.c} |   2 +-
 ...{physmap_of_versatile.h => physmap-versatile.h} |   2 +-
 drivers/mtd/maps/physmap.c                         | 280 ---------
 drivers/mtd/maps/physmap_of_core.c                 | 368 ------------
 11 files changed, 678 insertions(+), 953 deletions(-)
 delete mode 100644 drivers/mtd/maps/gpio-addr-flash.c
 create mode 100644 drivers/mtd/maps/physmap-core.c
 rename drivers/mtd/maps/{physmap_of_gemini.c => physmap-gemini.c} (98%)
 rename drivers/mtd/maps/{physmap_of_gemini.h => physmap-gemini.h} (90%)
 rename drivers/mtd/maps/{physmap_of_versatile.c => physmap-versatile.c} (99%)
 rename drivers/mtd/maps/{physmap_of_versatile.h => physmap-versatile.h} (90%)
 delete mode 100644 drivers/mtd/maps/physmap.c
 delete mode 100644 drivers/mtd/maps/physmap_of_core.c
Signature · 6 lines
2.14.1


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