linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: fix CONFIG_VIRT_TO_BUS handling
@ 2013-03-13 16:43 Arnd Bergmann
  2013-03-13 21:45 ` Stephen Rothwell
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2013-03-13 16:43 UTC (permalink / raw)
  To: linux-arm-kernel, Stephen Rothwell; +Cc: linux-kernel, Russell King - ARM Linux

887cbce0 "arch Kconfig: centralise CONFIG_ARCH_NO_VIRT_TO_BUS"
and  4febd95a8 "Select VIRT_TO_BUS directly where needed" from
Stephen Rothwell changed globally how CONFIG_VIRT_TO_BUS is
selected, while my own a5d533ee0 "ARM: disable virt_to_bus/
virt_to_bus almost everywhere" was merged at the same time and
changed which platforms select it on ARM.

The result of this conflict was that we again see CONFIG_VIRT_TO_BUS
on all ARM systems. This patch fixes up the problem and removes
CONFIG_ARCH_NO_VIRT_TO_BUS again on ARM.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
---

I'd like to merge this one through the arm-soc tree as a 3.9 bug fix
unless there are objections.

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 78ffcc6..ad52cd4 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -49,7 +49,6 @@ config ARM
 	select HAVE_REGS_AND_STACK_ACCESS_API
 	select HAVE_SYSCALL_TRACEPOINTS
 	select HAVE_UID16
-	select HAVE_VIRT_TO_BUS
 	select KTIME_SCALAR
 	select PERF_USE_VMALLOC
 	select RTC_LIB
@@ -733,6 +732,7 @@ config ARCH_RPC
 	select NEED_MACH_IO_H
 	select NEED_MACH_MEMORY_H
 	select NO_IOPORT
+	select VIRT_TO_BUS
 	help
 	  On the Acorn Risc-PC, Linux can support the internal IDE disk and
 	  CD-ROM interface, serial and parallel port, and the floppy drive.
@@ -868,6 +868,7 @@ config ARCH_SHARK
 	select ISA_DMA
 	select NEED_MACH_MEMORY_H
 	select PCI
+	select VIRT_TO_BUS
 	select ZONE_DMA
 	help
 	  Support for the StrongARM based Digital DNARD machine, also known
@@ -1451,10 +1452,6 @@ config ISA_DMA
 	bool
 	select ISA_DMA_API
 
-config ARCH_NO_VIRT_TO_BUS
-	def_bool y
-	depends on !ARCH_RPC && !ARCH_NETWINDER && !ARCH_SHARK
-
 # Select ISA DMA interface
 config ISA_DMA_API
 	bool
diff --git a/arch/arm/mach-footbridge/Kconfig b/arch/arm/mach-footbridge/Kconfig
index abda5a1..0f2111a 100644
--- a/arch/arm/mach-footbridge/Kconfig
+++ b/arch/arm/mach-footbridge/Kconfig
@@ -67,6 +67,7 @@ config ARCH_NETWINDER
 	select ISA
 	select ISA_DMA
 	select PCI
+	select VIRT_TO_BUS
 	help
 	  Say Y here if you intend to run this kernel on the Rebel.COM
 	  NetWinder.  Information about this machine can be found at:

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

* Re: [PATCH] ARM: fix CONFIG_VIRT_TO_BUS handling
  2013-03-13 16:43 [PATCH] ARM: fix CONFIG_VIRT_TO_BUS handling Arnd Bergmann
@ 2013-03-13 21:45 ` Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2013-03-13 21:45 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: linux-arm-kernel, linux-kernel, Russell King - ARM Linux

[-- Attachment #1: Type: text/plain, Size: 574 bytes --]

Hi Arnd,

On Wed, 13 Mar 2013 16:43:48 +0000 Arnd Bergmann <arnd@arndb.de> wrote:
>
> I'd like to merge this one through the arm-soc tree as a 3.9 bug fix
> unless there are objections.

The only problem is that, in the current arm-soc tree, VIRT_TO_BUS
depends on HAVE_VIRT_TO_BUS (since my first patch is in there but not the
second) ... that means that after this patch is applied you will get
warnings from the new "select VIRT_TO_BUS" statements (I think :-)).

Sorry about the mess.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2013-03-13 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-13 16:43 [PATCH] ARM: fix CONFIG_VIRT_TO_BUS handling Arnd Bergmann
2013-03-13 21:45 ` Stephen Rothwell

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).