Kconfig: rename HAS_IOPORT to HAS_IOPORT_MAP
If the renamed symbol is defined lib/iomap.c implements ioport_map and ioport_unmap and currently (nearly) all platforms define the port accessor functions outb/inb and friend unconditionally. So HAS_IOPORT_MAP is the better name for this. Consequently NO_IOPORT is renamed to NO_IOPORT_MAP. The motivation for this change is to reintroduce a symbol HAS_IOPORT that signals if outb/int et al are available. I will address that at least one merge window later though to keep surprises to a minimum and catch new introductions of (HAS|NO)_IOPORT. The changes in this commit were done using: $ git grep -l -E '(NO|HAS)_IOPORT' | xargs perl -p -i -e 's/\b((?:CONFIG_)?(?:NO|HAS)_IOPORT)\b/$1_MAP/' Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
此提交包含在:
@@ -3,7 +3,7 @@ config SUPERH
|
||||
select ARCH_MIGHT_HAVE_PC_PARPORT
|
||||
select EXPERT
|
||||
select CLKDEV_LOOKUP
|
||||
select HAVE_IDE if HAS_IOPORT
|
||||
select HAVE_IDE if HAS_IOPORT_MAP
|
||||
select HAVE_MEMBLOCK
|
||||
select HAVE_MEMBLOCK_NODE_MAP
|
||||
select ARCH_DISCARD_MEMBLOCK
|
||||
@@ -138,7 +138,7 @@ config ARCH_HAS_ILOG2_U32
|
||||
config ARCH_HAS_ILOG2_U64
|
||||
def_bool n
|
||||
|
||||
config NO_IOPORT
|
||||
config NO_IOPORT_MAP
|
||||
def_bool !PCI
|
||||
depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
|
||||
!SH_HP6XX && !SH_SOLUTION_ENGINE
|
||||
|
@@ -158,7 +158,7 @@ config SH_SDK7786
|
||||
bool "SDK7786"
|
||||
depends on CPU_SUBTYPE_SH7786
|
||||
select SYS_SUPPORTS_PCI
|
||||
select NO_IOPORT if !PCI
|
||||
select NO_IOPORT_MAP if !PCI
|
||||
select ARCH_WANT_OPTIONAL_GPIOLIB
|
||||
select HAVE_SRAM_POOL
|
||||
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||
@@ -204,7 +204,7 @@ config SH_URQUELL
|
||||
depends on CPU_SUBTYPE_SH7786
|
||||
select ARCH_REQUIRE_GPIOLIB
|
||||
select SYS_SUPPORTS_PCI
|
||||
select NO_IOPORT if !PCI
|
||||
select NO_IOPORT_MAP if !PCI
|
||||
|
||||
config SH_MIGOR
|
||||
bool "Migo-R"
|
||||
@@ -306,7 +306,7 @@ config SH_LBOX_RE2
|
||||
config SH_X3PROTO
|
||||
bool "SH-X3 Prototype board"
|
||||
depends on CPU_SUBTYPE_SHX3
|
||||
select NO_IOPORT if !PCI
|
||||
select NO_IOPORT_MAP if !PCI
|
||||
select IRQ_DOMAIN
|
||||
|
||||
config SH_MAGIC_PANEL_R2
|
||||
@@ -333,7 +333,7 @@ config SH_POLARIS
|
||||
|
||||
config SH_SH2007
|
||||
bool "SH-2007 board"
|
||||
select NO_IOPORT
|
||||
select NO_IOPORT_MAP
|
||||
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||
depends on CPU_SUBTYPE_SH7780
|
||||
help
|
||||
|
@@ -122,7 +122,7 @@ __BUILD_MEMORY_STRING(__raw_, l, u32)
|
||||
|
||||
__BUILD_MEMORY_STRING(__raw_, q, u64)
|
||||
|
||||
#ifdef CONFIG_HAS_IOPORT
|
||||
#ifdef CONFIG_HAS_IOPORT_MAP
|
||||
|
||||
/*
|
||||
* Slowdown I/O port space accesses for antique hardware.
|
||||
@@ -218,7 +218,7 @@ __BUILD_IOPORT_STRING(w, u16)
|
||||
__BUILD_IOPORT_STRING(l, u32)
|
||||
__BUILD_IOPORT_STRING(q, u64)
|
||||
|
||||
#else /* !CONFIG_HAS_IOPORT */
|
||||
#else /* !CONFIG_HAS_IOPORT_MAP */
|
||||
|
||||
#include <asm/io_noioport.h>
|
||||
|
||||
|
@@ -36,7 +36,7 @@ __ioremap_trapped(unsigned long offset, unsigned long size)
|
||||
#define __ioremap_trapped(offset, size) NULL
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HAS_IOPORT
|
||||
#ifdef CONFIG_HAS_IOPORT_MAP
|
||||
extern struct list_head trapped_io;
|
||||
|
||||
static inline void __iomem *
|
||||
|
@@ -21,7 +21,7 @@ struct sh_machine_vector {
|
||||
int (*mv_irq_demux)(int irq);
|
||||
void (*mv_init_irq)(void);
|
||||
|
||||
#ifdef CONFIG_HAS_IOPORT
|
||||
#ifdef CONFIG_HAS_IOPORT_MAP
|
||||
void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
|
||||
void (*mv_ioport_unmap)(void __iomem *);
|
||||
#endif
|
||||
|
@@ -22,7 +22,7 @@ obj-y := debugtraps.o dma-nommu.o dumpstack.o \
|
||||
|
||||
ifndef CONFIG_GENERIC_IOMAP
|
||||
obj-y += iomap.o
|
||||
obj-$(CONFIG_HAS_IOPORT) += ioport.o
|
||||
obj-$(CONFIG_HAS_IOPORT_MAP) += ioport.o
|
||||
endif
|
||||
|
||||
obj-$(CONFIG_SUPERH32) += sys_sh32.o
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#define TRAPPED_PAGES_MAX 16
|
||||
|
||||
#ifdef CONFIG_HAS_IOPORT
|
||||
#ifdef CONFIG_HAS_IOPORT_MAP
|
||||
LIST_HEAD(trapped_io);
|
||||
EXPORT_SYMBOL_GPL(trapped_io);
|
||||
#endif
|
||||
@@ -90,7 +90,7 @@ int register_trapped_io(struct trapped_io *tiop)
|
||||
tiop->magic = IO_TRAPPED_MAGIC;
|
||||
INIT_LIST_HEAD(&tiop->list);
|
||||
spin_lock_irq(&trapped_lock);
|
||||
#ifdef CONFIG_HAS_IOPORT
|
||||
#ifdef CONFIG_HAS_IOPORT_MAP
|
||||
if (flags & IORESOURCE_IO)
|
||||
list_add(&tiop->list, &trapped_io);
|
||||
#endif
|
||||
|
新增問題並參考
封鎖使用者