[PATCH v2 0/2] arch/*/io.h: remove ioremap_uc in some architectures

Baoquan He posted 2 patches 3 years, 1 month ago
There is a newer version of this series
Documentation/driver-api/device-io.rst | 11 ++++--
arch/alpha/include/asm/io.h            |  1 -
arch/hexagon/include/asm/io.h          |  3 --
arch/m68k/include/asm/kmap.h           |  1 -
arch/mips/include/asm/io.h             | 47 +++++++++++++++++++++++++-
arch/mips/include/asm/mmiowb.h         |  2 --
arch/parisc/include/asm/io.h           |  2 --
arch/powerpc/include/asm/io.h          |  1 -
arch/sh/include/asm/io.h               |  2 --
arch/sparc/include/asm/io_64.h         |  1 -
10 files changed, 55 insertions(+), 16 deletions(-)
[PATCH v2 0/2] arch/*/io.h: remove ioremap_uc in some architectures
Posted by Baoquan He 3 years, 1 month ago
This patchset tries to remove ioremap_uc() in the current architectures
except of x86 and ia64. They will use the default ioremap_uc definition
in <asm-generic/io.h> which returns NULL.

If any arch sees a breakage caused by the default ioremap_uc(), it can
provide a sepcific one for its own usage.

v1->v2:
  - Update log of patch 2, and document related to ioremap_uc()
    according to Geert's comment.
  - Add Geert's Acked-by.

Baoquan He (2):
  mips: add <asm-generic/io.h> including
  arch/*/io.h: remove ioremap_uc in some architectures

 Documentation/driver-api/device-io.rst | 11 ++++--
 arch/alpha/include/asm/io.h            |  1 -
 arch/hexagon/include/asm/io.h          |  3 --
 arch/m68k/include/asm/kmap.h           |  1 -
 arch/mips/include/asm/io.h             | 47 +++++++++++++++++++++++++-
 arch/mips/include/asm/mmiowb.h         |  2 --
 arch/parisc/include/asm/io.h           |  2 --
 arch/powerpc/include/asm/io.h          |  1 -
 arch/sh/include/asm/io.h               |  2 --
 arch/sparc/include/asm/io_64.h         |  1 -
 10 files changed, 55 insertions(+), 16 deletions(-)

-- 
2.34.1
Re: [PATCH v2 0/2] arch/*/io.h: remove ioremap_uc in some architectures
Posted by Luis Chamberlain 3 years, 1 month ago
On Wed, Mar 01, 2023 at 06:22:06PM +0800, Baoquan He wrote:
> This patchset tries to remove ioremap_uc() in the current architectures
> except of x86 and ia64. They will use the default ioremap_uc definition
> in <asm-generic/io.h> which returns NULL.
> 
> If any arch sees a breakage caused by the default ioremap_uc(), it can
> provide a sepcific one for its own usage.

Feel free to add:

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>

  Luis
Re: [PATCH v2 0/2] arch/*/io.h: remove ioremap_uc in some architectures
Posted by Baoquan He 3 years, 1 month ago
On 03/02/23 at 11:57am, Luis Chamberlain wrote:
> On Wed, Mar 01, 2023 at 06:22:06PM +0800, Baoquan He wrote:
> > This patchset tries to remove ioremap_uc() in the current architectures
> > except of x86 and ia64. They will use the default ioremap_uc definition
> > in <asm-generic/io.h> which returns NULL.
> > 
> > If any arch sees a breakage caused by the default ioremap_uc(), it can
> > provide a sepcific one for its own usage.
> 
> Feel free to add:
> 
> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>

Thanks for check. I made some changes according to comments, will repost.
Please help review.
Re: [PATCH v2 0/2] arch/*/io.h: remove ioremap_uc in some architectures
Posted by Baoquan He 3 years, 1 month ago
On 03/01/23 at 06:22pm, Baoquan He wrote:
> This patchset tries to remove ioremap_uc() in the current architectures
> except of x86 and ia64. They will use the default ioremap_uc definition
> in <asm-generic/io.h> which returns NULL.
> 
> If any arch sees a breakage caused by the default ioremap_uc(), it can
> provide a sepcific one for its own usage.

Forgot mentioning this patchset is based on below patchset.

[PATCH v5 00/17] mm: ioremap:  Convert architectures to take GENERIC_IOREMAP way
https://lore.kernel.org/all/20230301034247.136007-1-bhe@redhat.com/T/#u

> 
> v1->v2:
>   - Update log of patch 2, and document related to ioremap_uc()
>     according to Geert's comment.
>   - Add Geert's Acked-by.
> 
> Baoquan He (2):
>   mips: add <asm-generic/io.h> including
>   arch/*/io.h: remove ioremap_uc in some architectures
> 
>  Documentation/driver-api/device-io.rst | 11 ++++--
>  arch/alpha/include/asm/io.h            |  1 -
>  arch/hexagon/include/asm/io.h          |  3 --
>  arch/m68k/include/asm/kmap.h           |  1 -
>  arch/mips/include/asm/io.h             | 47 +++++++++++++++++++++++++-
>  arch/mips/include/asm/mmiowb.h         |  2 --
>  arch/parisc/include/asm/io.h           |  2 --
>  arch/powerpc/include/asm/io.h          |  1 -
>  arch/sh/include/asm/io.h               |  2 --
>  arch/sparc/include/asm/io_64.h         |  1 -
>  10 files changed, 55 insertions(+), 16 deletions(-)
> 
> -- 
> 2.34.1
>