public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/5] Introduce CONFIG_GENERIC_IO
@ 2012-02-07  0:22 Richard Weinberger
  2012-02-07  0:22 ` [PATCH 2/5] um: Serve io_remap_pfn_range() Richard Weinberger
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Richard Weinberger @ 2012-02-07  0:22 UTC (permalink / raw)
  To: linux-kernel
  Cc: Artem.Bityutskiy, linux-mtd, viro, user-mode-linux-devel,
	Richard Weinberger

There are situations where CONFIG_HAS_IOMEM is too restrictive.
For example CONFIG_MTD_NAND_NANDSIM depends on CONFIG_HAS_IOMEM
but it works perfectly fine if an architecture without io memory
just includes asm-generic/io.h or implements everything defined in it.
UML is such a corner case.

Signed-off-by: Richard Weinberger <richard@nod.at>
---
 lib/Kconfig |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index d69d321..c3c4c1c 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -26,6 +26,10 @@ config GENERIC_IOMAP
 	bool
 	select GENERIC_PCI_IOMAP
 
+config GENERIC_IO
+	boolean
+	default n
+
 config CRC_CCITT
 	tristate "CRC-CCITT functions"
 	help
@@ -221,6 +225,7 @@ config BTREE
 config HAS_IOMEM
 	boolean
 	depends on !NO_IOMEM
+	select GENERIC_IO
 	default y
 
 config HAS_IOPORT
-- 
1.7.6

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

end of thread, other threads:[~2012-02-07 11:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-07  0:22 [PATCH 1/5] Introduce CONFIG_GENERIC_IO Richard Weinberger
2012-02-07  0:22 ` [PATCH 2/5] um: Serve io_remap_pfn_range() Richard Weinberger
2012-02-07  0:22 ` [PATCH 3/5] um: a bunch of headers can be killed by using generic-y Richard Weinberger
2012-02-07  0:22 ` [PATCH 4/5] um: Wire CONFIG_GENERIC_IO up Richard Weinberger
2012-02-07  0:22 ` [PATCH 5/5] MTD: Relax dependencies Richard Weinberger
2012-02-07 11:58   ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox