Hi Greg,

thanks for this great job.

On patch 10, PIC is PCI, right ?
In case you hae some time,  am interested in understanding how those
guards

#define xxx xxx

works.

Is it ok to test the patch now in my mcf54415 based board ?

Reviewed-by: Angelo Dureghello <ang...@sysam.it>

On Wed, Apr 11, 2018 at 10:54:14PM +1000, Greg Ungerer wrote:
> Move a copy of the definitions of the *_relaxed() macros into io_no.h
> and io_mm.h. This precedes a change to the io_no.h file to use
> asm-generic/io.h. They will be removed from io_no.h at that point.
> 
> Signed-off-by: Greg Ungerer <g...@linux-m68k.org>
> ---
>  arch/m68k/include/asm/io.h    | 8 --------
>  arch/m68k/include/asm/io_mm.h | 8 ++++++++
>  arch/m68k/include/asm/io_no.h | 8 ++++++++
>  3 files changed, 16 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/m68k/include/asm/io.h b/arch/m68k/include/asm/io.h
> index 756089c..00b4515 100644
> --- a/arch/m68k/include/asm/io.h
> +++ b/arch/m68k/include/asm/io.h
> @@ -4,11 +4,3 @@
>  #else
>  #include <asm/io_mm.h>
>  #endif
> -
> -#define readb_relaxed(addr)  readb(addr)
> -#define readw_relaxed(addr)  readw(addr)
> -#define readl_relaxed(addr)  readl(addr)
> -
> -#define writeb_relaxed(b, addr)      writeb(b, addr)
> -#define writew_relaxed(b, addr)      writew(b, addr)
> -#define writel_relaxed(b, addr)      writel(b, addr)
> diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
> index ed5333e..22e778e 100644
> --- a/arch/m68k/include/asm/io_mm.h
> +++ b/arch/m68k/include/asm/io_mm.h
> @@ -524,4 +524,12 @@ static inline void ioport_unmap(void __iomem *p)
>  {
>  }
>  
> +#define readb_relaxed(addr)  readb(addr)
> +#define readw_relaxed(addr)  readw(addr)
> +#define readl_relaxed(addr)  readl(addr)
> +
> +#define writeb_relaxed(b, addr)      writeb(b, addr)
> +#define writew_relaxed(b, addr)      writew(b, addr)
> +#define writel_relaxed(b, addr)      writel(b, addr)
> +
>  #endif /* _IO_H */
> diff --git a/arch/m68k/include/asm/io_no.h b/arch/m68k/include/asm/io_no.h
> index 86f45b4..ffe567e 100644
> --- a/arch/m68k/include/asm/io_no.h
> +++ b/arch/m68k/include/asm/io_no.h
> @@ -189,4 +189,12 @@ static inline void ioport_unmap(void __iomem *p)
>  
>  #endif /* __KERNEL__ */
>  
> +#define readb_relaxed(addr)  readb(addr)
> +#define readw_relaxed(addr)  readw(addr)
> +#define readl_relaxed(addr)  readl(addr)
> +
> +#define writeb_relaxed(b, addr)      writeb(b, addr)
> +#define writew_relaxed(b, addr)      writew(b, addr)
> +#define writel_relaxed(b, addr)      writel(b, addr)
> +
>  #endif /* _M68KNOMMU_IO_H */
> -- 
> 1.9.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to