All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] dove: fix __io() definition to use bus based offset
@ 2010-07-29  5:45 Eric Miao
  2010-07-29 15:26 ` Arnd Bergmann
  2010-07-31 11:08 ` Russell King - ARM Linux
  0 siblings, 2 replies; 12+ messages in thread
From: Eric Miao @ 2010-07-29  5:45 UTC (permalink / raw)
  To: linux-arm-kernel

    [ARM] dove: fix __io() definition to use bus based offset

    __io() should be based on DOVE_PCIE0_IO_BUS_BASE instead of _PHYS_BASE,
    and use __typesafe_io() for consistency.

    Cc: Nicolas Pitre <nico@fluxnic.net>
    Cc: Lennert Buijtenhek <buytenh@wantstofly.org>
    Cc: Saeed Bishara <saeed@marvell.com>
    Signed-off-by: Eric Miao <eric.miao@canonical.com>

diff --git a/arch/arm/mach-dove/include/mach/io.h
b/arch/arm/mach-dove/include/mach/io.h
index 3b3e472..067435e 100644
--- a/arch/arm/mach-dove/include/mach/io.h
+++ b/arch/arm/mach-dove/include/mach/io.h
@@ -11,10 +11,9 @@

 #include "dove.h"

-#define IO_SPACE_LIMIT		0xffffffff
-
-#define __io(a)  ((void __iomem *)(((a) - DOVE_PCIE0_IO_PHYS_BASE) +\
-				   DOVE_PCIE0_IO_VIRT_BASE))
-#define __mem_pci(a)		(a)
+#define IO_SPACE_LIMIT	0xffffffff
+#define __io(a)		__typesafe_io((a) - DOVE_PCIE0_IO_BUS_BASE + \
+					    DOVE_PCIE0_IO_VIRT_BASE)
+#define __mem_pci(a)	(a)

 #endif

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-08-03  9:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-29  5:45 [RFC] dove: fix __io() definition to use bus based offset Eric Miao
2010-07-29 15:26 ` Arnd Bergmann
2010-07-29 15:34   ` Eric Miao
2010-07-29 15:49     ` Arnd Bergmann
2010-08-01 11:39       ` Saeed Bishara
2010-07-31 11:08 ` Russell King - ARM Linux
2010-07-31 19:21   ` Arnd Bergmann
2010-07-31 20:47     ` Russell King - ARM Linux
2010-08-02 10:59       ` Arnd Bergmann
2010-08-02 11:24         ` Russell King - ARM Linux
2010-08-02 15:44           ` Arnd Bergmann
2010-08-03  9:08             ` Arnd Bergmann

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.