From: dsaxena@plexity.net (Deepak Saxena)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 11/23] ARM: mach-ixp23xx: remove arch specific special handling for ioremap
Date: Thu, 17 Nov 2011 16:03:20 -0800 [thread overview]
Message-ID: <20111118000320.GA16897@plexity.net> (raw)
In-Reply-To: <1321422521-1138-12-git-send-email-nico@fluxnic.net>
On Nov 16 2011, at 00:48, Nicolas Pitre was caught saying:
> From: Nicolas Pitre <nicolas.pitre@linaro.org>
>
> A generic version should replace this later.
>
> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Looks good to me, specially in sync with the generic ioremap().
I don't have HW to test anymore, Lennert, can you test this
series on the IXP?
Reviewed-by: Deepak Saxena <dsaxena@linaro.org>
> ---
> arch/arm/mach-ixp23xx/include/mach/io.h | 29 -----------------------------
> 1 files changed, 0 insertions(+), 29 deletions(-)
>
> diff --git a/arch/arm/mach-ixp23xx/include/mach/io.h b/arch/arm/mach-ixp23xx/include/mach/io.h
> index a1749d0fd8..4ce4353b9f 100644
> --- a/arch/arm/mach-ixp23xx/include/mach/io.h
> +++ b/arch/arm/mach-ixp23xx/include/mach/io.h
> @@ -20,33 +20,4 @@
> #define __io(p) ((void __iomem*)((p) + IXP23XX_PCI_IO_VIRT))
> #define __mem_pci(a) (a)
>
> -static inline void __iomem *
> -ixp23xx_ioremap(unsigned long addr, unsigned long size, unsigned int mtype)
> -{
> - if (addr >= IXP23XX_PCI_MEM_START &&
> - addr <= IXP23XX_PCI_MEM_START + IXP23XX_PCI_MEM_SIZE) {
> - if (addr + size > IXP23XX_PCI_MEM_START + IXP23XX_PCI_MEM_SIZE)
> - return NULL;
> -
> - return (void __iomem *)
> - ((addr - IXP23XX_PCI_MEM_START) + IXP23XX_PCI_MEM_VIRT);
> - }
> -
> - return __arm_ioremap(addr, size, mtype);
> -}
> -
> -static inline void
> -ixp23xx_iounmap(void __iomem *addr)
> -{
> - if ((((u32)addr) >= IXP23XX_PCI_MEM_VIRT) &&
> - (((u32)addr) < IXP23XX_PCI_MEM_VIRT + IXP23XX_PCI_MEM_SIZE))
> - return;
> -
> - __iounmap(addr);
> -}
> -
> -#define __arch_ioremap ixp23xx_ioremap
> -#define __arch_iounmap ixp23xx_iounmap
> -
> -
> #endif
> --
> 1.7.7.1.431.g10b2a
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
"People think all we need to fix our predicament is a free source of
energy, but I think we need to change out behaviour. More energy would
just deplete the Earth's lifeblood faster." - Janine Benyius
next prev parent reply other threads:[~2011-11-18 0:03 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 5:48 [PATCH 0/23] mach/vmalloc.h removal, and ioremap optimization Nicolas Pitre
2011-11-16 5:48 ` [PATCH 01/23] ARM: mach-dove: remove inclusion of <mach/vmalloc.h> Nicolas Pitre
2011-11-16 5:48 ` [PATCH 02/23] ARM: mach-prima2: don't define SIRFSOC_VA in terms of VMALLOC_END Nicolas Pitre
2011-11-16 5:48 ` [PATCH 03/23] ARM: plat-mxc: remove inclusion of <mach/vmalloc.h> Nicolas Pitre
2011-11-16 5:48 ` [PATCH 04/23] ARM: mach-at91: remove arch specific special handling for ioremap Nicolas Pitre
2011-11-16 5:48 ` [PATCH 05/23] ARM: mach-davinci: " Nicolas Pitre
2011-11-16 5:48 ` [PATCH 06/23] ARM: mach-tegra: " Nicolas Pitre
2011-11-16 5:48 ` [PATCH 07/23] ARM: plat-omap: " Nicolas Pitre
2011-11-18 18:39 ` Kevin Hilman
2011-12-02 20:21 ` Tony Lindgren
2011-12-02 21:39 ` Nicolas Pitre
2011-12-05 23:21 ` Tony Lindgren
2011-12-05 23:56 ` Russell King - ARM Linux
2011-12-06 0:33 ` Nicolas Pitre
2011-12-06 0:36 ` Russell King - ARM Linux
2011-12-06 4:09 ` Nicolas Pitre
2011-12-06 4:46 ` Tony Lindgren
2011-12-06 8:55 ` Russell King - ARM Linux
2011-11-16 5:48 ` [PATCH 08/23] ARM: mach-bcmring: use proper constant to identify DMA memory area Nicolas Pitre
2011-11-16 5:48 ` [PATCH 09/23] ARM: mach-orion5x: remove arch specific special handling for ioremap Nicolas Pitre
2011-11-16 5:48 ` [PATCH 10/23] ARM: mach-kirkwood: " Nicolas Pitre
2011-11-16 5:48 ` [PATCH 11/23] ARM: mach-ixp23xx: " Nicolas Pitre
2011-11-18 0:03 ` Deepak Saxena [this message]
2011-11-16 5:48 ` [PATCH 12/23] ARM: plat-iop: " Nicolas Pitre
2011-11-16 5:48 ` [PATCH 13/23] ARM: versatile: remove overlapping map_desc entry Nicolas Pitre
2011-11-16 5:48 ` [PATCH 14/23] ARM: realview: fix map_desc alignment Nicolas Pitre
2011-11-16 5:48 ` [PATCH 15/23] ARM: realview-eb11mp: " Nicolas Pitre
2011-11-16 5:48 ` [PATCH 16/23] ARM: sort the meminfo array earlier Nicolas Pitre
2011-11-16 5:48 ` [PATCH 17/23] ARM: move initialization of the high_memory variable earlier Nicolas Pitre
2011-11-16 5:48 ` [PATCH 18/23] mm: add vm_area_add_early() Nicolas Pitre
2011-11-16 5:48 ` [PATCH 19/23] ARM: move iotable mappings within the vmalloc region Nicolas Pitre
2011-11-16 5:48 ` [PATCH 20/23] ARM: simplify __iounmap() when dealing with section based mapping Nicolas Pitre
2011-11-16 5:48 ` [PATCH 21/23] ARM: add generic ioremap optimization by reusing static mappings Nicolas Pitre
2011-11-22 10:16 ` Russell King - ARM Linux
2011-11-22 13:44 ` Nicolas Pitre
2011-11-16 5:48 ` [PATCH 22/23] ARM: big removal of now unused vmalloc.h files Nicolas Pitre
2011-11-16 5:48 ` [PATCH 23/23] ARM: move VMALLOC_END down temporarily for shmobile Nicolas Pitre
2011-12-16 5:34 ` Magnus Damm
2011-12-17 16:41 ` Nicolas Pitre
[not found] ` <1321422521-1138-1-git-send-email-nico-vtqb6HGKxmzR7s880joybQ@public.gmane.org>
2011-11-16 17:13 ` [PATCH 0/23] mach/vmalloc.h removal, and ioremap optimization Stephen Warren
2011-11-16 17:13 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF1740D748BE-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-11-16 23:08 ` Nicolas Pitre
2011-11-16 23:08 ` Nicolas Pitre
2011-11-18 10:04 ` Jamie Iles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111118000320.GA16897@plexity.net \
--to=dsaxena@plexity.net \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.