Re: [PATCH 12/31] nds32: Device specific operations

2017-11-22 Thread Greentime Hu
2017-11-11 0:14 GMT+08:00 Arnd Bergmann : > Could you move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt > out of that #ifdef, or would that break other architectures? > It seems ok. I just tried arm64, x86 and nds32. #endif /* CONFIG_MMU */ #ifndef ioremap_nocache void __iomem

Re: [PATCH 12/31] nds32: Device specific operations

2017-11-10 Thread Arnd Bergmann
On Fri, Nov 10, 2017 at 5:07 PM, Greentime Hu wrote: > 2017-11-09 15:04 GMT+08:00 Greentime Hu : >> 2017-11-08 17:04 GMT+08:00 Arnd Bergmann : >>> On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >>> +

Re: [PATCH 12/31] nds32: Device specific operations

2017-11-10 Thread Greentime Hu
2017-11-09 15:04 GMT+08:00 Greentime Hu : > 2017-11-08 17:04 GMT+08:00 Arnd Bergmann : >> On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> >>> + >>> +#define ioremap(cookie,size) __ioremap(cookie,size,0,1) >>> +#define

Re: [PATCH 12/31] nds32: Device specific operations

2017-11-08 Thread Greentime Hu
2017-11-08 17:04 GMT+08:00 Arnd Bergmann : > On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: > >> + >> +#define ioremap(cookie,size) __ioremap(cookie,size,0,1) >> +#define ioremap_nocache(cookie,size) __ioremap(cookie,size,0,1) >> +#define

Re: [PATCH 12/31] nds32: Device specific operations

2017-11-08 Thread Arnd Bergmann
On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: > + > +#define ioremap(cookie,size) __ioremap(cookie,size,0,1) > +#define ioremap_nocache(cookie,size) __ioremap(cookie,size,0,1) > +#define iounmap(cookie)__iounmap(cookie) > +#include

[PATCH 12/31] nds32: Device specific operations

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 33 + arch/nds32/mm/ioremap.c | 67 +++ 2