* [OpenRISC] [PATCH 20/21] csky: remove ioremap_cache [not found] ` <20191017174554.29840-21-hch@lst.de> @ 2019-10-21 7:58 ` Guo Ren 2019-11-05 1:26 ` Christoph Hellwig 0 siblings, 1 reply; 6+ messages in thread From: Guo Ren @ 2019-10-21 7:58 UTC (permalink / raw) To: openrisc Acked-by: Guo Ren <guoren@kernel.org> On Fri, Oct 18, 2019 at 1:47 AM Christoph Hellwig <hch@lst.de> wrote: > > No driver that can be used on csky uses ioremap_cache, and this > interface has been deprecated in favor of memremap. > > Signed-off-by: Christoph Hellwig <hch@lst.de> > --- > arch/csky/include/asm/io.h | 2 -- > arch/csky/mm/ioremap.c | 7 ------- > 2 files changed, 9 deletions(-) > > diff --git a/arch/csky/include/asm/io.h b/arch/csky/include/asm/io.h > index a4b9fb616faa..f572605d5ad5 100644 > --- a/arch/csky/include/asm/io.h > +++ b/arch/csky/include/asm/io.h > @@ -36,13 +36,11 @@ > /* > * I/O memory mapping functions. > */ > -extern void __iomem *ioremap_cache(phys_addr_t addr, size_t size); > extern void __iomem *__ioremap(phys_addr_t addr, size_t size, pgprot_t prot); > extern void iounmap(void *addr); > > #define ioremap(addr, size) __ioremap((addr), (size), pgprot_noncached(PAGE_KERNEL)) > #define ioremap_wc(addr, size) __ioremap((addr), (size), pgprot_writecombine(PAGE_KERNEL)) > -#define ioremap_cache ioremap_cache > > #include <asm-generic/io.h> > > diff --git a/arch/csky/mm/ioremap.c b/arch/csky/mm/ioremap.c > index e13cd3497628..ae78256a56fd 100644 > --- a/arch/csky/mm/ioremap.c > +++ b/arch/csky/mm/ioremap.c > @@ -44,13 +44,6 @@ void __iomem *__ioremap(phys_addr_t phys_addr, size_t size, pgprot_t prot) > } > EXPORT_SYMBOL(__ioremap); > > -void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size) > -{ > - return __ioremap_caller(phys_addr, size, PAGE_KERNEL, > - __builtin_return_address(0)); > -} > -EXPORT_SYMBOL(ioremap_cache); > - > void iounmap(void __iomem *addr) > { > vunmap((void *)((unsigned long)addr & PAGE_MASK)); > -- > 2.20.1 > -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [OpenRISC] [PATCH 20/21] csky: remove ioremap_cache 2019-10-21 7:58 ` [OpenRISC] [PATCH 20/21] csky: remove ioremap_cache Guo Ren @ 2019-11-05 1:26 ` Christoph Hellwig 0 siblings, 0 replies; 6+ messages in thread From: Christoph Hellwig @ 2019-11-05 1:26 UTC (permalink / raw) To: openrisc On Mon, Oct 21, 2019 at 03:58:28PM +0800, Guo Ren wrote: > Acked-by: Guo Ren <guoren@kernel.org> Can you also take a look at the next patch and give me a review? ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20191017174554.29840-9-hch@lst.de>]
* [OpenRISC] [PATCH 08/21] x86: clean up ioremap [not found] ` <20191017174554.29840-9-hch@lst.de> @ 2019-10-21 8:23 ` Thomas Gleixner 2019-10-28 15:29 ` Christoph Hellwig 0 siblings, 1 reply; 6+ messages in thread From: Thomas Gleixner @ 2019-10-21 8:23 UTC (permalink / raw) To: openrisc On Thu, 17 Oct 2019, Christoph Hellwig wrote: Please change the subject to: x86/mm: Cleanup ioremap() > Use ioremap as the main implemented function, and defined ioremap() please s/defined/define/ > ioremap_nocache to it as a deprecated alias. ioremap_nocache() as a deprecated alias of ioremap(). Aside of that this lacks any form of rationale. Please add some WHY to it. Should this go with your larger series or can this be picked up independently? Thanks, tglx ^ permalink raw reply [flat|nested] 6+ messages in thread
* [OpenRISC] [PATCH 08/21] x86: clean up ioremap 2019-10-21 8:23 ` [OpenRISC] [PATCH 08/21] x86: clean up ioremap Thomas Gleixner @ 2019-10-28 15:29 ` Christoph Hellwig 0 siblings, 0 replies; 6+ messages in thread From: Christoph Hellwig @ 2019-10-28 15:29 UTC (permalink / raw) To: openrisc On Mon, Oct 21, 2019 at 10:23:03AM +0200, Thomas Gleixner wrote: > Should this go with your larger series or can this be picked up > independently? This should all go together. ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20191017174554.29840-4-hch@lst.de>]
* [OpenRISC] [PATCH 03/21] ia64: rename ioremap_nocache to ioremap_uc [not found] ` <20191017174554.29840-4-hch@lst.de> @ 2019-10-21 8:47 ` Sergei Shtylyov 0 siblings, 0 replies; 6+ messages in thread From: Sergei Shtylyov @ 2019-10-21 8:47 UTC (permalink / raw) To: openrisc Hello! On 17.10.2019 20:45, Christoph Hellwig wrote: > On ia64 ioremap_nocache fails if attributs don't match. Not other Attributes? > architectures does this, and we plan to get rid of ioremap_nocache. > So get rid of the special semantics and define ioremap_nocache in > terms of ioremap as no portable driver could rely on the behavior > anyway. > > However x86 implements ioremap_uc with a in a similar way as the ia64 With a what? > version of ioremap_nocache, so implement that instead. > > Signed-off-by: Christoph Hellwig <hch@lst.de> > --- > arch/ia64/include/asm/io.h | 6 +++--- > arch/ia64/mm/ioremap.c | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h > index 54e70c21352a..fec9df9609ed 100644 > --- a/arch/ia64/include/asm/io.h > +++ b/arch/ia64/include/asm/io.h [...] MBR, Sergei ^ permalink raw reply [flat|nested] 6+ messages in thread
* [OpenRISC] generic ioremap (and lots of cleanups) v3
@ 2019-10-29 6:48 Christoph Hellwig
2019-10-29 6:48 ` [OpenRISC] [PATCH 20/21] csky: remove ioremap_cache Christoph Hellwig
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2019-10-29 6:48 UTC (permalink / raw)
To: openrisc
Hi all,
the last patches in this series add a generic ioremap implementation,
and switch our 3 most recent and thus most tidy architeture ports over
to use it. With a little work and an additional arch hook or two the
implementation should be able to eventually cover more than half of
our ports.
The patches before that clean up various lose ends in the ioremap
and iounmap implementations.
Note that there is no good tree this would fit, which means I'd set up
a tree to it to Linus unless someone has a better idea.
A git tree is also available here:
git://git.infradead.org/users/hch/misc.git generic-ioremap
Gitweb:
http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/generic-ioremap
Changes since v2:
- fix various typos
- move the m68k __free_io_area around instead of introducing a forward
declaration
Changes since v1:
- dropped various patches already merged
- keep the parts of the parisc EISA hack that are still needed
^ permalink raw reply [flat|nested] 6+ messages in thread* [OpenRISC] [PATCH 20/21] csky: remove ioremap_cache 2019-10-29 6:48 [OpenRISC] generic ioremap (and lots of cleanups) v3 Christoph Hellwig @ 2019-10-29 6:48 ` Christoph Hellwig 0 siblings, 0 replies; 6+ messages in thread From: Christoph Hellwig @ 2019-10-29 6:48 UTC (permalink / raw) To: openrisc No driver that can be used on csky uses ioremap_cache, and this interface has been deprecated in favor of memremap. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Guo Ren <guoren@kernel.org> --- arch/csky/include/asm/io.h | 2 -- arch/csky/mm/ioremap.c | 7 ------- 2 files changed, 9 deletions(-) diff --git a/arch/csky/include/asm/io.h b/arch/csky/include/asm/io.h index a4b9fb616faa..f572605d5ad5 100644 --- a/arch/csky/include/asm/io.h +++ b/arch/csky/include/asm/io.h @@ -36,13 +36,11 @@ /* * I/O memory mapping functions. */ -extern void __iomem *ioremap_cache(phys_addr_t addr, size_t size); extern void __iomem *__ioremap(phys_addr_t addr, size_t size, pgprot_t prot); extern void iounmap(void *addr); #define ioremap(addr, size) __ioremap((addr), (size), pgprot_noncached(PAGE_KERNEL)) #define ioremap_wc(addr, size) __ioremap((addr), (size), pgprot_writecombine(PAGE_KERNEL)) -#define ioremap_cache ioremap_cache #include <asm-generic/io.h> diff --git a/arch/csky/mm/ioremap.c b/arch/csky/mm/ioremap.c index e13cd3497628..ae78256a56fd 100644 --- a/arch/csky/mm/ioremap.c +++ b/arch/csky/mm/ioremap.c @@ -44,13 +44,6 @@ void __iomem *__ioremap(phys_addr_t phys_addr, size_t size, pgprot_t prot) } EXPORT_SYMBOL(__ioremap); -void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size) -{ - return __ioremap_caller(phys_addr, size, PAGE_KERNEL, - __builtin_return_address(0)); -} -EXPORT_SYMBOL(ioremap_cache); - void iounmap(void __iomem *addr) { vunmap((void *)((unsigned long)addr & PAGE_MASK)); -- 2.20.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-11-05 1:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20191017174554.29840-1-hch@lst.de>
[not found] ` <20191017174554.29840-21-hch@lst.de>
2019-10-21 7:58 ` [OpenRISC] [PATCH 20/21] csky: remove ioremap_cache Guo Ren
2019-11-05 1:26 ` Christoph Hellwig
[not found] ` <20191017174554.29840-9-hch@lst.de>
2019-10-21 8:23 ` [OpenRISC] [PATCH 08/21] x86: clean up ioremap Thomas Gleixner
2019-10-28 15:29 ` Christoph Hellwig
[not found] ` <20191017174554.29840-4-hch@lst.de>
2019-10-21 8:47 ` [OpenRISC] [PATCH 03/21] ia64: rename ioremap_nocache to ioremap_uc Sergei Shtylyov
2019-10-29 6:48 [OpenRISC] generic ioremap (and lots of cleanups) v3 Christoph Hellwig
2019-10-29 6:48 ` [OpenRISC] [PATCH 20/21] csky: remove ioremap_cache Christoph Hellwig
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).