Skip to content

RFC mm: ioremap: Convert architectures to take GENERIC_IOREMAP way (Alternative)

Christophe Leroy linux-arch linux-hexagon linux-ia64 linux-mm linux-snps-arc linuxppc-dev lkml llvm openrisc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8hexagon: mm: Convert to GENERIC_IOREMAParch/hexagon/Kconfig arch/hexagon/include/asm/io.h arch/hexagon/mm/ioremap.c+8 -460 replies
2/8openrisc: mm: remove unneeded early ioremap codearch/openrisc/mm/ioremap.c+5 -171 reply
3/8mm/ioremap: Define generic_ioremap_prot() and generic_iounmap()include/asm-generic/io.h mm/ioremap.c+24 -62 replies
4/8mm: ioremap: allow ARCH to have its own ioremap definitioninclude/asm-generic/io.h+3 -00 replies
5/8arc: mm: Convert to GENERIC_IOREMAParch/arc/Kconfig arch/arc/include/asm/io.h arch/arc/mm/ioremap.c+8 -460 replies
6/8ia64: mm: Convert to GENERIC_IOREMAParch/ia64/Kconfig arch/ia64/include/asm/io.h arch/ia64/mm/ioremap.c+15 -420 replies
7/8mm/ioremap: Consider IOREMAP space in generic ioremapmm/ioremap.c+6 -16 replies
8/8powerpc: mm: Convert to GENERIC_IOREMAParch/powerpc/Kconfig arch/powerpc/include/asm/io.h arch/powerpc/mm/ioremap.c +2 more+29 -560 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchStafford Horne
1/8
2/8A-b
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/8] mm: ioremap: Convert architectures to take GENERIC_IOREMAP way (Alternative)

From:

As proposed in the discussion related to your series, here comes an exemple of how it could be.

I have taken it into ARC and IA64 architectures as an exemple. This is untested, even not compiled, it is just to illustrated my meaning in the discussion.

I also added a patch for powerpc architecture, that one in tested with both pmac32_defconfig and ppc64_le_defconfig.

From my point of view, this different approach provide less churn and less intellectual disturbance than the way you do it.

Open for discussion.

Baoquan He (5):
hexagon: mm: Convert to GENERIC_IOREMAP
openrisc: mm: remove unneeded early ioremap code
mm: ioremap: allow ARCH to have its own ioremap definition
arc: mm: Convert to GENERIC_IOREMAP
ia64: mm: Convert to GENERIC_IOREMAP

Christophe Leroy (3):
mm/ioremap: Define generic_ioremap_prot() and generic_iounmap() mm/ioremap: Consider IOREMAP space in generic ioremap
powerpc: mm: Convert to GENERIC_IOREMAP

 arch/arc/Kconfig              |  1 +
 arch/arc/include/asm/io.h     |  7 +++---
 arch/arc/mm/ioremap.c         | 46 +++--------------------------------
 arch/hexagon/Kconfig          |  1 +
 arch/hexagon/include/asm/io.h |  9 +++++--
 arch/hexagon/mm/ioremap.c     | 44 ---------------------------------
 arch/ia64/Kconfig             |  1 +
 arch/ia64/include/asm/io.h    | 11 ++++++---
 arch/ia64/mm/ioremap.c        | 45 ++++++----------------------------
 arch/openrisc/mm/ioremap.c    | 22 ++++-------------
 arch/powerpc/Kconfig          |  1 +
 arch/powerpc/include/asm/io.h | 11 ++++++---
 arch/powerpc/mm/ioremap.c     | 26 +-------------------
 arch/powerpc/mm/ioremap_32.c  | 25 ++++++++-----------
 arch/powerpc/mm/ioremap_64.c  | 22 +++++++----------
 include/asm-generic/io.h      |  7 ++++++
 mm/ioremap.c                  | 33 +++++++++++++++++++------
 17 files changed, 98 insertions(+), 214 deletions(-)
 delete mode 100644 arch/hexagon/mm/ioremap.c
Signature · 1 line
2.37.1