]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Kconfig: centralise CONFIG_ARCH_NO_VIRT_TO_BUS
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 29 Nov 2012 03:18:17 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:26 +0000 (16:23 +1100)
Make it easier for more architectures to select it and thus disable
drivers that use virt_to_bus().

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/Kconfig
arch/powerpc/Kconfig
arch/sh/Kconfig
arch/sparc/Kconfig

index 34884faf98cd26f3f24c6483dd98b10855387232..3ad5bbb275bffd77c0d3c44451e2eabe3d5b5b5f 100644 (file)
@@ -271,6 +271,13 @@ config ARCH_WANT_OLD_COMPAT_IPC
        select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
        bool
 
+config ARCH_NO_VIRT_TO_BUS
+       bool
+       help
+         An architecture should select this if it cannot (or will not)
+         implement virt_to_bus().  All new architectures should probably
+         select this.
+
 config GENERIC_KERNEL_THREAD
        bool
 
index 8e606633bfd37f85715962dfbda872fd7b277b70..5fbd13b29d4952d14c9b8a93414f0c82445f9c5e 100644 (file)
@@ -87,9 +87,6 @@ config GENERIC_GPIO
        help
          Generic GPIO API support
 
-config ARCH_NO_VIRT_TO_BUS
-       def_bool PPC64
-
 config PPC
        bool
        default y
@@ -101,6 +98,7 @@ config PPC
        select HAVE_FUNCTION_GRAPH_TRACER
        select SYSCTL_EXCEPTION_TRACE
        select ARCH_WANT_OPTIONAL_GPIOLIB
+       select ARCH_NO_VIRT_TO_BUS if PPC64
        select HAVE_IDE
        select HAVE_IOREMAP_PROT
        select HAVE_EFFICIENT_UNALIGNED_ACCESS
index 279ece3957c75e2cbb4e08a57477b46f0c2030bf..3282046bf1c8e65955e453ef854fa547355f07f5 100644 (file)
@@ -15,6 +15,7 @@ config SUPERH
        select HAVE_DEBUG_BUGVERBOSE
        select ARCH_HAVE_CUSTOM_GPIO_H
        select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
+       select ARCH_NO_VIRT_TO_BUS
        select PERF_USE_VMALLOC
        select HAVE_DEBUG_KMEMLEAK
        select HAVE_KERNEL_GZIP
@@ -151,9 +152,6 @@ config ARCH_HAS_ILOG2_U32
 config ARCH_HAS_ILOG2_U64
        def_bool n
 
-config ARCH_NO_VIRT_TO_BUS
-       def_bool y
-
 config ARCH_HAS_DEFAULT_IDLE
        def_bool y
 
index 61b722e854b035bef75ed2a61735417dd2b3b739..123d604a3f666b45a549679b73c17050d8b8c4ec 100644 (file)
@@ -21,6 +21,7 @@ config SPARC
        select SYSCTL_EXCEPTION_TRACE
        select ARCH_WANT_OPTIONAL_GPIOLIB
        select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
+       select ARCH_NO_VIRT_TO_BUS
        select RTC_CLASS
        select RTC_DRV_M48T59
        select HAVE_DMA_ATTRS
@@ -144,9 +145,6 @@ config GENERIC_GPIO
        help
          Generic GPIO API support
 
-config ARCH_NO_VIRT_TO_BUS
-       def_bool y
-
 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
        def_bool y if SPARC64