All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] Removing dead code
@ 2010-08-04 12:41 Christian Dietrich
  2010-08-04 12:41   ` Christian Dietrich
                   ` (11 more replies)
  0 siblings, 12 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, Andrew Morton, Finn Thain,
	Greg Kroah-Hartman, John Stultz, Thomas Gleixner, Sam Creasey,
	Greg Ungerer, Christoph Hellwig, Maxim Kuvyrkov,
	Lennart Sorensen, Martin Schwidefsky, Joe Perches,
	David Woodhouse, Mike Frysinger, Jiri Kosina, Alexander Kurz,
	Michael Roth, Russell King, Ralf Baechle, Manuel Lauss,
	Tony Lindgren, Dominik Brodowski, Wolfram Sang, Grant Likely,
	Sean MacLennan, Anatolij Gustschin, linux-m68k, linux-kernel,
	linux-mtd, linux-pcmcia
  Cc: vamos-dev

Hi all!
       
        As part of the VAMOS[0] research project at the University of
Erlangen we are looking at multiple integrity errors in linux'
configuration system.

        I've been running a check on the arch/m68k{,nommu} sourcetree for
config Items not defined in Kconfig and found 9 such cases. Sourcecode
blocks depending on these Items are not reachable from a vanilla
kernel -- dead code. I've seen such dead blocks made on purpose
e.g. while integrating new features into the kernel but generally
they're just useless.

        Each of the patches in this patchset removes on such dead
config Item, I'd be glad if you consider applying them. I've been
doing deeper analysis of such issues before and can do so again but
I'm not so sure they were fastly usefull.

In lack of an m68k cross compiler i was not able to build the kernel
against this patches. I don't think that they will crash the
compiling, but i'm not totally sure.

        Please keep me informed of this patch getting confirmed /
merged so we can keep track of it.

Regards

        Christian Dietrich

[0] http://vamos1.informatik.uni-erlangen.de/

Christian Dietrich (9):
  arch/m68k: Removing dead GG2 config option
  arch/m68k: Removing dead BSEIP config option
  arch/m68k{,nommu}: Removing dead SMP config option
  Removing dead CONFIG_RPX(LITE|CLASSIC)
  arch/m68knommu: Removing dead M68000 config option
  arch/m68knommu: Removing dead RELOCATE config option
  arch/m68knommu: Removing dead M68KFPU_EMU config option
  arch/m68knommu: Removing dead RAM_{16,32}_MB config option
  arch/m68knommu: Removing dead 68328_SERIAL_UART2 config option

 arch/m68k/Kconfig                        |    4 +-
 arch/m68k/include/asm/amigahw.h          |    1 -
 arch/m68k/include/asm/commproc.h         |   39 --------------
 arch/m68k/include/asm/io_mm.h            |   37 --------------
 arch/m68k/include/asm/system_mm.h        |    2 -
 arch/m68k/include/asm/system_no.h        |    9 ---
 arch/m68k/kernel/setup.c                 |    6 --
 arch/m68k/kernel/time.c                  |    2 -
 arch/m68k/sun3/sun3ints.c                |    8 +--
 arch/m68knommu/kernel/ptrace.c           |   18 -------
 arch/m68knommu/kernel/setup.c            |    3 -
 arch/m68knommu/kernel/time.c             |    3 +-
 arch/m68knommu/kernel/traps.c            |   13 -----
 arch/m68knommu/platform/68328/head-de2.S |    6 --
 arch/m68knommu/platform/68328/head-ram.S |   27 ----------
 arch/m68knommu/platform/68VZ328/config.c |    5 --
 drivers/mtd/maps/Kconfig                 |   10 ----
 drivers/mtd/maps/Makefile                |    1 -
 drivers/mtd/maps/rpxlite.c               |   64 -----------------------
 drivers/pcmcia/m8xx_pcmcia.c             |   81 ------------------------------
 drivers/serial/68328serial.h             |    5 --
 21 files changed, 6 insertions(+), 338 deletions(-)
 delete mode 100644 drivers/mtd/maps/rpxlite.c

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

* [PATCH 1/9] arch/m68k: Removing dead GG2 config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
@ 2010-08-04 12:41   ` Christian Dietrich
  2010-08-04 12:41   ` Christian Dietrich
                     ` (10 subsequent siblings)
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, Andrew Morton, Finn Thain,
	Greg Kroah-Hartman, John Stultz, linux-m68k, linux-kernel
  Cc: vamos-dev

CONFIG_GG2 doesn't exist in Kconfig, therefore removing
all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/Kconfig               |    4 ++--
 arch/m68k/include/asm/amigahw.h |    1 -
 arch/m68k/include/asm/io_mm.h   |   37 -------------------------------------
 arch/m68k/kernel/setup.c        |    6 ------
 4 files changed, 2 insertions(+), 46 deletions(-)

diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 2e3737b..2df0de5 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -437,7 +437,7 @@ config PROC_HARDWARE
 
 config ISA
 	bool
-	depends on Q40 || AMIGA_PCMCIA || GG2
+	depends on Q40 || AMIGA_PCMCIA
 	default y
 	help
 	  Find out whether you have ISA slots on your motherboard.  ISA is the
@@ -448,7 +448,7 @@ config ISA
 
 config GENERIC_ISA_DMA
 	bool
-	depends on Q40 || AMIGA_PCMCIA || GG2
+	depends on Q40 || AMIGA_PCMCIA
 	default y
 
 config ZONE_DMA
diff --git a/arch/m68k/include/asm/amigahw.h b/arch/m68k/include/asm/amigahw.h
index 5ca5dd9..7a19b56 100644
--- a/arch/m68k/include/asm/amigahw.h
+++ b/arch/m68k/include/asm/amigahw.h
@@ -102,7 +102,6 @@ struct amiga_hw_present {
     AMIGAHW_DECLARE(ALICE_NTSC);	/* NTSC Alice (8374) */
     AMIGAHW_DECLARE(MAGIC_REKICK);	/* A3000 Magic Hard Rekick */
     AMIGAHW_DECLARE(PCMCIA);		/* PCMCIA Slot */
-    AMIGAHW_DECLARE(GG2_ISA);		/* GG2 Zorro2ISA Bridge */
     AMIGAHW_DECLARE(ZORRO);		/* Zorro AutoConfig */
     AMIGAHW_DECLARE(ZORRO3);		/* Zorro III */
 };
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
index 9e673e3..63f5c54 100644
--- a/arch/m68k/include/asm/io_mm.h
+++ b/arch/m68k/include/asm/io_mm.h
@@ -49,23 +49,6 @@
 #define MULTI_ISA 0
 #endif /* Q40 */
 
-/* GG-II Zorro to ISA bridge */
-#ifdef CONFIG_GG2
-
-extern unsigned long gg2_isa_base;
-#define GG2_ISA_IO_B(ioaddr) (gg2_isa_base+1+((unsigned long)(ioaddr)*4))
-#define GG2_ISA_IO_W(ioaddr) (gg2_isa_base+  ((unsigned long)(ioaddr)*4))
-#define GG2_ISA_MEM_B(madr)  (gg2_isa_base+1+(((unsigned long)(madr)*4) & 0xfffff))
-#define GG2_ISA_MEM_W(madr)  (gg2_isa_base+  (((unsigned long)(madr)*4) & 0xfffff))
-
-#ifndef MULTI_ISA
-#define MULTI_ISA 0
-#else
-#undef MULTI_ISA
-#define MULTI_ISA 1
-#endif
-#endif /* GG2 */
-
 #ifdef CONFIG_AMIGA_PCMCIA
 #include <asm/amigayle.h>
 
@@ -89,7 +72,6 @@ extern unsigned long gg2_isa_base;
 #endif
 
 #define ISA_TYPE_Q40 (1)
-#define ISA_TYPE_GG2 (2)
 #define ISA_TYPE_AG  (3)
 
 #if defined(CONFIG_Q40) && !defined(MULTI_ISA)
@@ -100,10 +82,6 @@ extern unsigned long gg2_isa_base;
 #define ISA_TYPE ISA_TYPE_AG
 #define ISA_SEX  1
 #endif
-#if defined(CONFIG_GG2) && !defined(MULTI_ISA)
-#define ISA_TYPE ISA_TYPE_GG2
-#define ISA_SEX  0
-#endif
 
 #ifdef MULTI_ISA
 extern int isa_type;
@@ -125,9 +103,6 @@ static inline u8 __iomem *isa_itb(unsigned long addr)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: return (u8 __iomem *)Q40_ISA_IO_B(addr);
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: return (u8 __iomem *)GG2_ISA_IO_B(addr);
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: return (u8 __iomem *)AG_ISA_IO_B(addr);
 #endif
@@ -141,9 +116,6 @@ static inline u16 __iomem *isa_itw(unsigned long addr)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: return (u16 __iomem *)Q40_ISA_IO_W(addr);
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: return (u16 __iomem *)GG2_ISA_IO_W(addr);
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: return (u16 __iomem *)AG_ISA_IO_W(addr);
 #endif
@@ -167,9 +139,6 @@ static inline u8 __iomem *isa_mtb(unsigned long addr)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: return (u8 __iomem *)Q40_ISA_MEM_B(addr);
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: return (u8 __iomem *)GG2_ISA_MEM_B(addr);
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: return (u8 __iomem *)addr;
 #endif
@@ -183,9 +152,6 @@ static inline u16 __iomem *isa_mtw(unsigned long addr)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: return (u16 __iomem *)Q40_ISA_MEM_W(addr);
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: return (u16 __iomem *)GG2_ISA_MEM_W(addr);
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: return (u16 __iomem *)addr;
 #endif
@@ -217,9 +183,6 @@ static inline void isa_delay(void)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: isa_outb(0,0x80); break;
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: break;
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: break;
 #endif
diff --git a/arch/m68k/kernel/setup.c b/arch/m68k/kernel/setup.c
index 303730a..b3963ab 100644
--- a/arch/m68k/kernel/setup.c
+++ b/arch/m68k/kernel/setup.c
@@ -359,12 +359,6 @@ void __init setup_arch(char **cmdline_p)
 		isa_type = ISA_TYPE_Q40;
 		isa_sex = 0;
 	}
-#ifdef CONFIG_GG2
-	if (MACH_IS_AMIGA && AMIGAHW_PRESENT(GG2_ISA)) {
-		isa_type = ISA_TYPE_GG2;
-		isa_sex = 0;
-	}
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
 	if (MACH_IS_AMIGA && AMIGAHW_PRESENT(PCMCIA)) {
 		isa_type = ISA_TYPE_AG;
-- 
1.7.0.4


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

* [PATCH 1/9] arch/m68k: Removing dead GG2 config option
@ 2010-08-04 12:41   ` Christian Dietrich
  0 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, Andrew Morton, Finn Thain, Greg
  Cc: vamos-dev

CONFIG_GG2 doesn't exist in Kconfig, therefore removing
all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/Kconfig               |    4 ++--
 arch/m68k/include/asm/amigahw.h |    1 -
 arch/m68k/include/asm/io_mm.h   |   37 -------------------------------------
 arch/m68k/kernel/setup.c        |    6 ------
 4 files changed, 2 insertions(+), 46 deletions(-)

diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 2e3737b..2df0de5 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -437,7 +437,7 @@ config PROC_HARDWARE
 
 config ISA
 	bool
-	depends on Q40 || AMIGA_PCMCIA || GG2
+	depends on Q40 || AMIGA_PCMCIA
 	default y
 	help
 	  Find out whether you have ISA slots on your motherboard.  ISA is the
@@ -448,7 +448,7 @@ config ISA
 
 config GENERIC_ISA_DMA
 	bool
-	depends on Q40 || AMIGA_PCMCIA || GG2
+	depends on Q40 || AMIGA_PCMCIA
 	default y
 
 config ZONE_DMA
diff --git a/arch/m68k/include/asm/amigahw.h b/arch/m68k/include/asm/amigahw.h
index 5ca5dd9..7a19b56 100644
--- a/arch/m68k/include/asm/amigahw.h
+++ b/arch/m68k/include/asm/amigahw.h
@@ -102,7 +102,6 @@ struct amiga_hw_present {
     AMIGAHW_DECLARE(ALICE_NTSC);	/* NTSC Alice (8374) */
     AMIGAHW_DECLARE(MAGIC_REKICK);	/* A3000 Magic Hard Rekick */
     AMIGAHW_DECLARE(PCMCIA);		/* PCMCIA Slot */
-    AMIGAHW_DECLARE(GG2_ISA);		/* GG2 Zorro2ISA Bridge */
     AMIGAHW_DECLARE(ZORRO);		/* Zorro AutoConfig */
     AMIGAHW_DECLARE(ZORRO3);		/* Zorro III */
 };
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
index 9e673e3..63f5c54 100644
--- a/arch/m68k/include/asm/io_mm.h
+++ b/arch/m68k/include/asm/io_mm.h
@@ -49,23 +49,6 @@
 #define MULTI_ISA 0
 #endif /* Q40 */
 
-/* GG-II Zorro to ISA bridge */
-#ifdef CONFIG_GG2
-
-extern unsigned long gg2_isa_base;
-#define GG2_ISA_IO_B(ioaddr) (gg2_isa_base+1+((unsigned long)(ioaddr)*4))
-#define GG2_ISA_IO_W(ioaddr) (gg2_isa_base+  ((unsigned long)(ioaddr)*4))
-#define GG2_ISA_MEM_B(madr)  (gg2_isa_base+1+(((unsigned long)(madr)*4) & 0xfffff))
-#define GG2_ISA_MEM_W(madr)  (gg2_isa_base+  (((unsigned long)(madr)*4) & 0xfffff))
-
-#ifndef MULTI_ISA
-#define MULTI_ISA 0
-#else
-#undef MULTI_ISA
-#define MULTI_ISA 1
-#endif
-#endif /* GG2 */
-
 #ifdef CONFIG_AMIGA_PCMCIA
 #include <asm/amigayle.h>
 
@@ -89,7 +72,6 @@ extern unsigned long gg2_isa_base;
 #endif
 
 #define ISA_TYPE_Q40 (1)
-#define ISA_TYPE_GG2 (2)
 #define ISA_TYPE_AG  (3)
 
 #if defined(CONFIG_Q40) && !defined(MULTI_ISA)
@@ -100,10 +82,6 @@ extern unsigned long gg2_isa_base;
 #define ISA_TYPE ISA_TYPE_AG
 #define ISA_SEX  1
 #endif
-#if defined(CONFIG_GG2) && !defined(MULTI_ISA)
-#define ISA_TYPE ISA_TYPE_GG2
-#define ISA_SEX  0
-#endif
 
 #ifdef MULTI_ISA
 extern int isa_type;
@@ -125,9 +103,6 @@ static inline u8 __iomem *isa_itb(unsigned long addr)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: return (u8 __iomem *)Q40_ISA_IO_B(addr);
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: return (u8 __iomem *)GG2_ISA_IO_B(addr);
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: return (u8 __iomem *)AG_ISA_IO_B(addr);
 #endif
@@ -141,9 +116,6 @@ static inline u16 __iomem *isa_itw(unsigned long addr)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: return (u16 __iomem *)Q40_ISA_IO_W(addr);
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: return (u16 __iomem *)GG2_ISA_IO_W(addr);
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: return (u16 __iomem *)AG_ISA_IO_W(addr);
 #endif
@@ -167,9 +139,6 @@ static inline u8 __iomem *isa_mtb(unsigned long addr)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: return (u8 __iomem *)Q40_ISA_MEM_B(addr);
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: return (u8 __iomem *)GG2_ISA_MEM_B(addr);
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: return (u8 __iomem *)addr;
 #endif
@@ -183,9 +152,6 @@ static inline u16 __iomem *isa_mtw(unsigned long addr)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: return (u16 __iomem *)Q40_ISA_MEM_W(addr);
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: return (u16 __iomem *)GG2_ISA_MEM_W(addr);
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: return (u16 __iomem *)addr;
 #endif
@@ -217,9 +183,6 @@ static inline void isa_delay(void)
 #ifdef CONFIG_Q40
     case ISA_TYPE_Q40: isa_outb(0,0x80); break;
 #endif
-#ifdef CONFIG_GG2
-    case ISA_TYPE_GG2: break;
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
     case ISA_TYPE_AG: break;
 #endif
diff --git a/arch/m68k/kernel/setup.c b/arch/m68k/kernel/setup.c
index 303730a..b3963ab 100644
--- a/arch/m68k/kernel/setup.c
+++ b/arch/m68k/kernel/setup.c
@@ -359,12 +359,6 @@ void __init setup_arch(char **cmdline_p)
 		isa_type = ISA_TYPE_Q40;
 		isa_sex = 0;
 	}
-#ifdef CONFIG_GG2
-	if (MACH_IS_AMIGA && AMIGAHW_PRESENT(GG2_ISA)) {
-		isa_type = ISA_TYPE_GG2;
-		isa_sex = 0;
-	}
-#endif
 #ifdef CONFIG_AMIGA_PCMCIA
 	if (MACH_IS_AMIGA && AMIGAHW_PRESENT(PCMCIA)) {
 		isa_type = ISA_TYPE_AG;
-- 
1.7.0.4

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

* [PATCH 2/9] arch/m68k: Removing dead BSEIP config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
@ 2010-08-04 12:41   ` Christian Dietrich
  2010-08-04 12:41   ` Christian Dietrich
                     ` (10 subsequent siblings)
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, linux-m68k, linux-kernel; +Cc: vamos-dev

CONFIG_BSEIP doesn't exist in Kconfig, therefore removing
all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/include/asm/commproc.h |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/arch/m68k/include/asm/commproc.h b/arch/m68k/include/asm/commproc.h
index edf5eb6..b4f1d54 100644
--- a/arch/m68k/include/asm/commproc.h
+++ b/arch/m68k/include/asm/commproc.h
@@ -497,28 +497,6 @@ typedef struct scc_enet {
 #define SICR_ENET_CLKRT	((uint)0x00003d00)
 #endif
 
-#ifdef CONFIG_BSEIP
-/* This ENET stuff is for the MPC823 with ethernet on SCC2.
- * This is unique to the BSE ip-Engine board.
- */
-#define PA_ENET_RXD	((ushort)0x0004)
-#define PA_ENET_TXD	((ushort)0x0008)
-#define PA_ENET_TCLK	((ushort)0x0100)
-#define PA_ENET_RCLK	((ushort)0x0200)
-#define PB_ENET_TENA	((uint)0x00002000)
-#define PC_ENET_CLSN	((ushort)0x0040)
-#define PC_ENET_RENA	((ushort)0x0080)
-
-/* BSE uses port B and C bits for PHY control also.
-*/
-#define PB_BSE_POWERUP	((uint)0x00000004)
-#define PB_BSE_FDXDIS	((uint)0x00008000)
-#define PC_BSE_LOOPBACK	((ushort)0x0800)
-
-#define SICR_ENET_MASK	((uint)0x0000ff00)
-#define SICR_ENET_CLKRT	((uint)0x00002c00)
-#endif
-
 /* SCC Event register as used by Ethernet.
 */
 #define SCCE_ENET_GRA	((ushort)0x0080)	/* Graceful stop complete */
-- 
1.7.0.4


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

* [PATCH 2/9] arch/m68k: Removing dead BSEIP config option
@ 2010-08-04 12:41   ` Christian Dietrich
  0 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, linux-m68k, linux-kernel; +Cc: vamos-dev

CONFIG_BSEIP doesn't exist in Kconfig, therefore removing
all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/include/asm/commproc.h |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/arch/m68k/include/asm/commproc.h b/arch/m68k/include/asm/commproc.h
index edf5eb6..b4f1d54 100644
--- a/arch/m68k/include/asm/commproc.h
+++ b/arch/m68k/include/asm/commproc.h
@@ -497,28 +497,6 @@ typedef struct scc_enet {
 #define SICR_ENET_CLKRT	((uint)0x00003d00)
 #endif
 
-#ifdef CONFIG_BSEIP
-/* This ENET stuff is for the MPC823 with ethernet on SCC2.
- * This is unique to the BSE ip-Engine board.
- */
-#define PA_ENET_RXD	((ushort)0x0004)
-#define PA_ENET_TXD	((ushort)0x0008)
-#define PA_ENET_TCLK	((ushort)0x0100)
-#define PA_ENET_RCLK	((ushort)0x0200)
-#define PB_ENET_TENA	((uint)0x00002000)
-#define PC_ENET_CLSN	((ushort)0x0040)
-#define PC_ENET_RENA	((ushort)0x0080)
-
-/* BSE uses port B and C bits for PHY control also.
-*/
-#define PB_BSE_POWERUP	((uint)0x00000004)
-#define PB_BSE_FDXDIS	((uint)0x00008000)
-#define PC_BSE_LOOPBACK	((ushort)0x0800)
-
-#define SICR_ENET_MASK	((uint)0x0000ff00)
-#define SICR_ENET_CLKRT	((uint)0x00002c00)
-#endif
-
 /* SCC Event register as used by Ethernet.
 */
 #define SCCE_ENET_GRA	((ushort)0x0080)	/* Graceful stop complete */
-- 
1.7.0.4

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

* [PATCH 3/9] arch/m68k{,nommu}: Removing dead SMP config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
  2010-08-04 12:41   ` Christian Dietrich
  2010-08-04 12:41   ` Christian Dietrich
@ 2010-08-04 12:41 ` Christian Dietrich
  2010-09-13 18:14   ` Geert Uytterhoeven
  2010-08-04 12:41 ` Christian Dietrich
                   ` (8 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, John Stultz, Andrew Morton,
	Thomas Gleixner, Sam Creasey, Greg Ungerer, Martin Schwidefsky,
	Joe Perches, linux-m68k, linux-kernel
  Cc: vamos-dev

CONFIG_SMP doesn't exist in Kconfig (for this architecure), therefore
removing all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/include/asm/system_mm.h |    2 --
 arch/m68k/include/asm/system_no.h |    9 ---------
 arch/m68k/kernel/time.c           |    2 --
 arch/m68k/sun3/sun3ints.c         |    8 +++-----
 arch/m68knommu/kernel/time.c      |    3 +--
 5 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/arch/m68k/include/asm/system_mm.h b/arch/m68k/include/asm/system_mm.h
index dbb6515..485daec 100644
--- a/arch/m68k/include/asm/system_mm.h
+++ b/arch/m68k/include/asm/system_mm.h
@@ -205,9 +205,7 @@ static inline unsigned long __cmpxchg(volatile void *p, unsigned long old,
 	((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
 			(unsigned long)(n), sizeof(*(ptr))))
 
-#ifndef CONFIG_SMP
 #include <asm-generic/cmpxchg.h>
-#endif
 
 #endif
 
diff --git a/arch/m68k/include/asm/system_no.h b/arch/m68k/include/asm/system_no.h
index 3c0718d..08f31bd 100644
--- a/arch/m68k/include/asm/system_no.h
+++ b/arch/m68k/include/asm/system_no.h
@@ -106,17 +106,10 @@ asmlinkage void resume(void);
 #define wmb()  asm volatile (""   : : :"memory")
 #define set_mb(var, value)	({ (var) = (value); wmb(); })
 
-#ifdef CONFIG_SMP
-#define smp_mb()	mb()
-#define smp_rmb()	rmb()
-#define smp_wmb()	wmb()
-#define smp_read_barrier_depends()	read_barrier_depends()
-#else
 #define smp_mb()	barrier()
 #define smp_rmb()	barrier()
 #define smp_wmb()	barrier()
 #define smp_read_barrier_depends()	do { } while(0)
-#endif
 
 #define read_barrier_depends()  ((void)0)
 
@@ -199,9 +192,7 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz
 			(unsigned long)(n), sizeof(*(ptr))))
 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n))
 
-#ifndef CONFIG_SMP
 #include <asm-generic/cmpxchg.h>
-#endif
 
 #define arch_align_stack(x) (x)
 
diff --git a/arch/m68k/kernel/time.c b/arch/m68k/kernel/time.c
index 4926b38..06438da 100644
--- a/arch/m68k/kernel/time.c
+++ b/arch/m68k/kernel/time.c
@@ -42,9 +42,7 @@ static inline int set_rtc_mmss(unsigned long nowtime)
 static irqreturn_t timer_interrupt(int irq, void *dummy)
 {
 	do_timer(1);
-#ifndef CONFIG_SMP
 	update_process_times(user_mode(get_irq_regs()));
-#endif
 	profile_tick(CPU_PROFILING);
 
 #ifdef CONFIG_HEARTBEAT
diff --git a/arch/m68k/sun3/sun3ints.c b/arch/m68k/sun3/sun3ints.c
index ad90393..606ff4d 100644
--- a/arch/m68k/sun3/sun3ints.c
+++ b/arch/m68k/sun3/sun3ints.c
@@ -66,12 +66,10 @@ static irqreturn_t sun3_int5(int irq, void *dev_id)
 #ifdef CONFIG_SUN3
 	intersil_clear();
 #endif
-        do_timer(1);
-#ifndef CONFIG_SMP
+    do_timer(1);
 	update_process_times(user_mode(get_irq_regs()));
-#endif
-        if (!(kstat_cpu(0).irqs[irq] % 20))
-                sun3_leds(led_pattern[(kstat_cpu(0).irqs[irq] % 160) / 20]);
+    if (!(kstat_cpu(0).irqs[irq] % 20))
+        sun3_leds(led_pattern[(kstat_cpu(0).irqs[irq] % 160) / 20]);
 	return IRQ_HANDLED;
 }
 
diff --git a/arch/m68knommu/kernel/time.c b/arch/m68knommu/kernel/time.c
index a90acf5..7089dd9 100644
--- a/arch/m68knommu/kernel/time.c
+++ b/arch/m68knommu/kernel/time.c
@@ -50,9 +50,8 @@ irqreturn_t arch_timer_interrupt(int irq, void *dummy)
 
 	write_sequnlock(&xtime_lock);
 
-#ifndef CONFIG_SMP
 	update_process_times(user_mode(get_irq_regs()));
-#endif
+
 	return(IRQ_HANDLED);
 }
 #endif
-- 
1.7.0.4


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

* [PATCH 3/9] arch/m68k{,nommu}: Removing dead SMP config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
                   ` (2 preceding siblings ...)
  2010-08-04 12:41 ` [PATCH 3/9] arch/m68k{,nommu}: Removing dead SMP " Christian Dietrich
@ 2010-08-04 12:41 ` Christian Dietrich
  2010-08-04 12:41   ` Christian Dietrich
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, John Stultz, Andrew Morton,
	Thomas Gleixner
  Cc: vamos-dev

CONFIG_SMP doesn't exist in Kconfig (for this architecure), therefore
removing all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/include/asm/system_mm.h |    2 --
 arch/m68k/include/asm/system_no.h |    9 ---------
 arch/m68k/kernel/time.c           |    2 --
 arch/m68k/sun3/sun3ints.c         |    8 +++-----
 arch/m68knommu/kernel/time.c      |    3 +--
 5 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/arch/m68k/include/asm/system_mm.h b/arch/m68k/include/asm/system_mm.h
index dbb6515..485daec 100644
--- a/arch/m68k/include/asm/system_mm.h
+++ b/arch/m68k/include/asm/system_mm.h
@@ -205,9 +205,7 @@ static inline unsigned long __cmpxchg(volatile void *p, unsigned long old,
 	((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
 			(unsigned long)(n), sizeof(*(ptr))))
 
-#ifndef CONFIG_SMP
 #include <asm-generic/cmpxchg.h>
-#endif
 
 #endif
 
diff --git a/arch/m68k/include/asm/system_no.h b/arch/m68k/include/asm/system_no.h
index 3c0718d..08f31bd 100644
--- a/arch/m68k/include/asm/system_no.h
+++ b/arch/m68k/include/asm/system_no.h
@@ -106,17 +106,10 @@ asmlinkage void resume(void);
 #define wmb()  asm volatile (""   : : :"memory")
 #define set_mb(var, value)	({ (var) = (value); wmb(); })
 
-#ifdef CONFIG_SMP
-#define smp_mb()	mb()
-#define smp_rmb()	rmb()
-#define smp_wmb()	wmb()
-#define smp_read_barrier_depends()	read_barrier_depends()
-#else
 #define smp_mb()	barrier()
 #define smp_rmb()	barrier()
 #define smp_wmb()	barrier()
 #define smp_read_barrier_depends()	do { } while(0)
-#endif
 
 #define read_barrier_depends()  ((void)0)
 
@@ -199,9 +192,7 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz
 			(unsigned long)(n), sizeof(*(ptr))))
 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n))
 
-#ifndef CONFIG_SMP
 #include <asm-generic/cmpxchg.h>
-#endif
 
 #define arch_align_stack(x) (x)
 
diff --git a/arch/m68k/kernel/time.c b/arch/m68k/kernel/time.c
index 4926b38..06438da 100644
--- a/arch/m68k/kernel/time.c
+++ b/arch/m68k/kernel/time.c
@@ -42,9 +42,7 @@ static inline int set_rtc_mmss(unsigned long nowtime)
 static irqreturn_t timer_interrupt(int irq, void *dummy)
 {
 	do_timer(1);
-#ifndef CONFIG_SMP
 	update_process_times(user_mode(get_irq_regs()));
-#endif
 	profile_tick(CPU_PROFILING);
 
 #ifdef CONFIG_HEARTBEAT
diff --git a/arch/m68k/sun3/sun3ints.c b/arch/m68k/sun3/sun3ints.c
index ad90393..606ff4d 100644
--- a/arch/m68k/sun3/sun3ints.c
+++ b/arch/m68k/sun3/sun3ints.c
@@ -66,12 +66,10 @@ static irqreturn_t sun3_int5(int irq, void *dev_id)
 #ifdef CONFIG_SUN3
 	intersil_clear();
 #endif
-        do_timer(1);
-#ifndef CONFIG_SMP
+    do_timer(1);
 	update_process_times(user_mode(get_irq_regs()));
-#endif
-        if (!(kstat_cpu(0).irqs[irq] % 20))
-                sun3_leds(led_pattern[(kstat_cpu(0).irqs[irq] % 160) / 20]);
+    if (!(kstat_cpu(0).irqs[irq] % 20))
+        sun3_leds(led_pattern[(kstat_cpu(0).irqs[irq] % 160) / 20]);
 	return IRQ_HANDLED;
 }
 
diff --git a/arch/m68knommu/kernel/time.c b/arch/m68knommu/kernel/time.c
index a90acf5..7089dd9 100644
--- a/arch/m68knommu/kernel/time.c
+++ b/arch/m68knommu/kernel/time.c
@@ -50,9 +50,8 @@ irqreturn_t arch_timer_interrupt(int irq, void *dummy)
 
 	write_sequnlock(&xtime_lock);
 
-#ifndef CONFIG_SMP
 	update_process_times(user_mode(get_irq_regs()));
-#endif
+
 	return(IRQ_HANDLED);
 }
 #endif
-- 
1.7.0.4

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

* [PATCH 4/9] Removing dead CONFIG_RPX(LITE|CLASSIC)
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
@ 2010-08-04 12:41   ` Christian Dietrich
  2010-08-04 12:41   ` Christian Dietrich
                     ` (10 subsequent siblings)
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, David Woodhouse,
	Mike Frysinger, Jiri Kosina, Alexander Kurz, Michael Roth,
	Russell King, Ralf Baechle, Manuel Lauss, Tony Lindgren,
	Dominik Brodowski, Wolfram Sang, Grant Likely, Sean MacLennan,
	Anatolij Gustschin, linux-m68k, linux-kernel, linux-mtd,
	linux-pcmcia
  Cc: vamos-dev

CONFIG_RPX(LITE|CLASSIC) doesn't exist in Kconfig, therefore removing
all references to it from the source. Because RPX(LITE|CLASSIC) can't
be defined, MTD_RPXLITE can't be defined either. Therfore removing it to.

They were be introduced in 14cf11af6cf608eb8c23e989ddb17a715ddce109 and 
removed in df34403dcaacef541a67c955aebc37c51f53ca7c.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/include/asm/commproc.h |   17 --------
 drivers/mtd/maps/Kconfig         |   10 -----
 drivers/mtd/maps/Makefile        |    1 -
 drivers/mtd/maps/rpxlite.c       |   64 ------------------------------
 drivers/pcmcia/m8xx_pcmcia.c     |   81 --------------------------------------
 5 files changed, 0 insertions(+), 173 deletions(-)
 delete mode 100644 drivers/mtd/maps/rpxlite.c

diff --git a/arch/m68k/include/asm/commproc.h b/arch/m68k/include/asm/commproc.h
index b4f1d54..48f5466 100644
--- a/arch/m68k/include/asm/commproc.h
+++ b/arch/m68k/include/asm/commproc.h
@@ -480,23 +480,6 @@ typedef struct scc_enet {
 #define SICR_ENET_CLKRT	((uint)0x0000003d)
 #endif
 
-#ifdef CONFIG_RPXLITE
-/* This ENET stuff is for the MPC850 with ethernet on SCC2.  Some of
- * this may be unique to the RPX-Lite configuration.
- * Note TENA is on Port B.
- */
-#define PA_ENET_RXD	((ushort)0x0004)
-#define PA_ENET_TXD	((ushort)0x0008)
-#define PA_ENET_TCLK	((ushort)0x0200)
-#define PA_ENET_RCLK	((ushort)0x0800)
-#define PB_ENET_TENA	((uint)0x00002000)
-#define PC_ENET_CLSN	((ushort)0x0040)
-#define PC_ENET_RENA	((ushort)0x0080)
-
-#define SICR_ENET_MASK	((uint)0x0000ff00)
-#define SICR_ENET_CLKRT	((uint)0x00003d00)
-#endif
-
 /* SCC Event register as used by Ethernet.
 */
 #define SCCE_ENET_GRA	((ushort)0x0080)	/* Graceful stop complete */
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index f22bc9f..10261fc 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -286,16 +286,6 @@ config MTD_TQM8XXL
 	  code to communicate with the chips on the TQM8xxL board. More at
 	  <http://www.denx.de/embedded-ppc-en.html>.
 
-config MTD_RPXLITE
-	tristate "CFI Flash device mapped on RPX Lite or CLLF"
-	depends on MTD_CFI && (RPXCLASSIC || RPXLITE)
-	help
-	  The RPXLite PowerPC board has CFI-compliant chips mapped in
-	  a strange sparse mapping. This 'mapping' driver supports that
-	  arrangement, allowing the CFI probe and command set driver code
-	  to communicate with the chips on the RPXLite board. More at
-	  <http://www.embeddedplanet.com/>.
-
 config MTD_MBX860
 	tristate "System flash on MBX860 board"
 	depends on MTD_CFI && MBX
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile
index bb035cd..7821c71 100644
--- a/drivers/mtd/maps/Makefile
+++ b/drivers/mtd/maps/Makefile
@@ -27,7 +27,6 @@ obj-$(CONFIG_MTD_PHYSMAP_OF)	+= physmap_of.o
 obj-$(CONFIG_MTD_PISMO)		+= pismo.o
 obj-$(CONFIG_MTD_PMC_MSP_EVM)   += pmcmsp-flash.o
 obj-$(CONFIG_MTD_PCMCIA)	+= pcmciamtd.o
-obj-$(CONFIG_MTD_RPXLITE)	+= rpxlite.o
 obj-$(CONFIG_MTD_TQM8XXL)	+= tqm8xxl.o
 obj-$(CONFIG_MTD_SA1100)	+= sa1100-flash.o
 obj-$(CONFIG_MTD_SBC_GXX)	+= sbc_gxx.o
diff --git a/drivers/mtd/maps/rpxlite.c b/drivers/mtd/maps/rpxlite.c
deleted file mode 100644
index 3e3ef53..0000000
--- a/drivers/mtd/maps/rpxlite.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Handle mapping of the flash on the RPX Lite and CLLF boards
- */
-
-#include <linux/module.h>
-#include <linux/types.h>
-#include <linux/kernel.h>
-#include <linux/init.h>
-#include <asm/io.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/map.h>
-
-
-#define WINDOW_ADDR 0xfe000000
-#define WINDOW_SIZE 0x800000
-
-static struct mtd_info *mymtd;
-
-static struct map_info rpxlite_map = {
-	.name = "RPX",
-	.size = WINDOW_SIZE,
-	.bankwidth = 4,
-	.phys = WINDOW_ADDR,
-};
-
-static int __init init_rpxlite(void)
-{
-	printk(KERN_NOTICE "RPX Lite or CLLF flash device: %x at %x\n", WINDOW_SIZE*4, WINDOW_ADDR);
-	rpxlite_map.virt = ioremap(WINDOW_ADDR, WINDOW_SIZE * 4);
-
-	if (!rpxlite_map.virt) {
-		printk("Failed to ioremap\n");
-		return -EIO;
-	}
-	simple_map_init(&rpxlite_map);
-	mymtd = do_map_probe("cfi_probe", &rpxlite_map);
-	if (mymtd) {
-		mymtd->owner = THIS_MODULE;
-		add_mtd_device(mymtd);
-		return 0;
-	}
-
-	iounmap((void *)rpxlite_map.virt);
-	return -ENXIO;
-}
-
-static void __exit cleanup_rpxlite(void)
-{
-	if (mymtd) {
-		del_mtd_device(mymtd);
-		map_destroy(mymtd);
-	}
-	if (rpxlite_map.virt) {
-		iounmap((void *)rpxlite_map.virt);
-		rpxlite_map.virt = 0;
-	}
-}
-
-module_init(init_rpxlite);
-module_exit(cleanup_rpxlite);
-
-MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Arnold Christensen <AKC@pel.dk>");
-MODULE_DESCRIPTION("MTD map driver for RPX Lite and CLLF boards");
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c
index 25e5e30..e56dd87 100644
--- a/drivers/pcmcia/m8xx_pcmcia.c
+++ b/drivers/pcmcia/m8xx_pcmcia.c
@@ -71,12 +71,6 @@ MODULE_LICENSE("Dual MPL/GPL");
 
 #if !defined(CONFIG_PCMCIA_SLOT_A) && !defined(CONFIG_PCMCIA_SLOT_B)
 
-/* The RPX series use SLOT_B */
-#if defined(CONFIG_RPXCLASSIC) || defined(CONFIG_RPXLITE)
-#define CONFIG_PCMCIA_SLOT_B
-#define CONFIG_BD_IS_MHZ
-#endif
-
 /* The ADS board use SLOT_A */
 #ifdef CONFIG_ADS
 #define CONFIG_PCMCIA_SLOT_A
@@ -256,81 +250,6 @@ static irqreturn_t m8xx_interrupt(int irq, void *dev);
 
 #define PCMCIA_BMT_LIMIT (15*4)	/* Bus Monitor Timeout value */
 
-/* ------------------------------------------------------------------------- */
-/* board specific stuff:                                                     */
-/* voltage_set(), hardware_enable() and hardware_disable()                   */
-/* ------------------------------------------------------------------------- */
-/* RPX Boards from Embedded Planet                                           */
-
-#if defined(CONFIG_RPXCLASSIC) || defined(CONFIG_RPXLITE)
-
-/* The RPX boards seems to have it's bus monitor timeout set to 6*8 clocks.
- * SYPCR is write once only, therefore must the slowest memory be faster
- * than the bus monitor or we will get a machine check due to the bus timeout.
- */
-
-#define PCMCIA_BOARD_MSG "RPX CLASSIC or RPX LITE"
-
-#undef PCMCIA_BMT_LIMIT
-#define PCMCIA_BMT_LIMIT (6*8)
-
-static int voltage_set(int slot, int vcc, int vpp)
-{
-	u32 reg = 0;
-
-	switch (vcc) {
-	case 0:
-		break;
-	case 33:
-		reg |= BCSR1_PCVCTL4;
-		break;
-	case 50:
-		reg |= BCSR1_PCVCTL5;
-		break;
-	default:
-		return 1;
-	}
-
-	switch (vpp) {
-	case 0:
-		break;
-	case 33:
-	case 50:
-		if (vcc == vpp)
-			reg |= BCSR1_PCVCTL6;
-		else
-			return 1;
-		break;
-	case 120:
-		reg |= BCSR1_PCVCTL7;
-	default:
-		return 1;
-	}
-
-	if (!((vcc == 50) || (vcc == 0)))
-		return 1;
-
-	/* first, turn off all power */
-
-	out_be32(((u32 *) RPX_CSR_ADDR),
-		 in_be32(((u32 *) RPX_CSR_ADDR)) & ~(BCSR1_PCVCTL4 |
-						     BCSR1_PCVCTL5 |
-						     BCSR1_PCVCTL6 |
-						     BCSR1_PCVCTL7));
-
-	/* enable new powersettings */
-
-	out_be32(((u32 *) RPX_CSR_ADDR), in_be32(((u32 *) RPX_CSR_ADDR)) | reg);
-
-	return 0;
-}
-
-#define socket_get(_slot_) PCMCIA_SOCKET_KEY_5V
-#define hardware_enable(_slot_)	/* No hardware to enable */
-#define hardware_disable(_slot_)	/* No hardware to disable */
-
-#endif				/* CONFIG_RPXCLASSIC */
-
 /* FADS Boards from Motorola                                               */
 
 #if defined(CONFIG_FADS)
-- 
1.7.0.4


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

* [PATCH 4/9] Removing dead CONFIG_RPX(LITE|CLASSIC)
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
                   ` (4 preceding siblings ...)
  2010-08-04 12:41   ` Christian Dietrich
@ 2010-08-04 12:41 ` Christian Dietrich
  2010-08-04 12:41 ` [PATCH 5/9] arch/m68knommu: Removing dead M68000 config option Christian Dietrich
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, David Woodhouse,
	Mike Frysinger, Jiri Kosina
  Cc: vamos-dev

CONFIG_RPX(LITE|CLASSIC) doesn't exist in Kconfig, therefore removing
all references to it from the source. Because RPX(LITE|CLASSIC) can't
be defined, MTD_RPXLITE can't be defined either. Therfore removing it to.

They were be introduced in 14cf11af6cf608eb8c23e989ddb17a715ddce109 and 
removed in df34403dcaacef541a67c955aebc37c51f53ca7c.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/include/asm/commproc.h |   17 --------
 drivers/mtd/maps/Kconfig         |   10 -----
 drivers/mtd/maps/Makefile        |    1 -
 drivers/mtd/maps/rpxlite.c       |   64 ------------------------------
 drivers/pcmcia/m8xx_pcmcia.c     |   81 --------------------------------------
 5 files changed, 0 insertions(+), 173 deletions(-)
 delete mode 100644 drivers/mtd/maps/rpxlite.c

diff --git a/arch/m68k/include/asm/commproc.h b/arch/m68k/include/asm/commproc.h
index b4f1d54..48f5466 100644
--- a/arch/m68k/include/asm/commproc.h
+++ b/arch/m68k/include/asm/commproc.h
@@ -480,23 +480,6 @@ typedef struct scc_enet {
 #define SICR_ENET_CLKRT	((uint)0x0000003d)
 #endif
 
-#ifdef CONFIG_RPXLITE
-/* This ENET stuff is for the MPC850 with ethernet on SCC2.  Some of
- * this may be unique to the RPX-Lite configuration.
- * Note TENA is on Port B.
- */
-#define PA_ENET_RXD	((ushort)0x0004)
-#define PA_ENET_TXD	((ushort)0x0008)
-#define PA_ENET_TCLK	((ushort)0x0200)
-#define PA_ENET_RCLK	((ushort)0x0800)
-#define PB_ENET_TENA	((uint)0x00002000)
-#define PC_ENET_CLSN	((ushort)0x0040)
-#define PC_ENET_RENA	((ushort)0x0080)
-
-#define SICR_ENET_MASK	((uint)0x0000ff00)
-#define SICR_ENET_CLKRT	((uint)0x00003d00)
-#endif
-
 /* SCC Event register as used by Ethernet.
 */
 #define SCCE_ENET_GRA	((ushort)0x0080)	/* Graceful stop complete */
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index f22bc9f..10261fc 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -286,16 +286,6 @@ config MTD_TQM8XXL
 	  code to communicate with the chips on the TQM8xxL board. More at
 	  <http://www.denx.de/embedded-ppc-en.html>.
 
-config MTD_RPXLITE
-	tristate "CFI Flash device mapped on RPX Lite or CLLF"
-	depends on MTD_CFI && (RPXCLASSIC || RPXLITE)
-	help
-	  The RPXLite PowerPC board has CFI-compliant chips mapped in
-	  a strange sparse mapping. This 'mapping' driver supports that
-	  arrangement, allowing the CFI probe and command set driver code
-	  to communicate with the chips on the RPXLite board. More at
-	  <http://www.embeddedplanet.com/>.
-
 config MTD_MBX860
 	tristate "System flash on MBX860 board"
 	depends on MTD_CFI && MBX
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile
index bb035cd..7821c71 100644
--- a/drivers/mtd/maps/Makefile
+++ b/drivers/mtd/maps/Makefile
@@ -27,7 +27,6 @@ obj-$(CONFIG_MTD_PHYSMAP_OF)	+= physmap_of.o
 obj-$(CONFIG_MTD_PISMO)		+= pismo.o
 obj-$(CONFIG_MTD_PMC_MSP_EVM)   += pmcmsp-flash.o
 obj-$(CONFIG_MTD_PCMCIA)	+= pcmciamtd.o
-obj-$(CONFIG_MTD_RPXLITE)	+= rpxlite.o
 obj-$(CONFIG_MTD_TQM8XXL)	+= tqm8xxl.o
 obj-$(CONFIG_MTD_SA1100)	+= sa1100-flash.o
 obj-$(CONFIG_MTD_SBC_GXX)	+= sbc_gxx.o
diff --git a/drivers/mtd/maps/rpxlite.c b/drivers/mtd/maps/rpxlite.c
deleted file mode 100644
index 3e3ef53..0000000
--- a/drivers/mtd/maps/rpxlite.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Handle mapping of the flash on the RPX Lite and CLLF boards
- */
-
-#include <linux/module.h>
-#include <linux/types.h>
-#include <linux/kernel.h>
-#include <linux/init.h>
-#include <asm/io.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/map.h>
-
-
-#define WINDOW_ADDR 0xfe000000
-#define WINDOW_SIZE 0x800000
-
-static struct mtd_info *mymtd;
-
-static struct map_info rpxlite_map = {
-	.name = "RPX",
-	.size = WINDOW_SIZE,
-	.bankwidth = 4,
-	.phys = WINDOW_ADDR,
-};
-
-static int __init init_rpxlite(void)
-{
-	printk(KERN_NOTICE "RPX Lite or CLLF flash device: %x at %x\n", WINDOW_SIZE*4, WINDOW_ADDR);
-	rpxlite_map.virt = ioremap(WINDOW_ADDR, WINDOW_SIZE * 4);
-
-	if (!rpxlite_map.virt) {
-		printk("Failed to ioremap\n");
-		return -EIO;
-	}
-	simple_map_init(&rpxlite_map);
-	mymtd = do_map_probe("cfi_probe", &rpxlite_map);
-	if (mymtd) {
-		mymtd->owner = THIS_MODULE;
-		add_mtd_device(mymtd);
-		return 0;
-	}
-
-	iounmap((void *)rpxlite_map.virt);
-	return -ENXIO;
-}
-
-static void __exit cleanup_rpxlite(void)
-{
-	if (mymtd) {
-		del_mtd_device(mymtd);
-		map_destroy(mymtd);
-	}
-	if (rpxlite_map.virt) {
-		iounmap((void *)rpxlite_map.virt);
-		rpxlite_map.virt = 0;
-	}
-}
-
-module_init(init_rpxlite);
-module_exit(cleanup_rpxlite);
-
-MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Arnold Christensen <AKC@pel.dk>");
-MODULE_DESCRIPTION("MTD map driver for RPX Lite and CLLF boards");
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c
index 25e5e30..e56dd87 100644
--- a/drivers/pcmcia/m8xx_pcmcia.c
+++ b/drivers/pcmcia/m8xx_pcmcia.c
@@ -71,12 +71,6 @@ MODULE_LICENSE("Dual MPL/GPL");
 
 #if !defined(CONFIG_PCMCIA_SLOT_A) && !defined(CONFIG_PCMCIA_SLOT_B)
 
-/* The RPX series use SLOT_B */
-#if defined(CONFIG_RPXCLASSIC) || defined(CONFIG_RPXLITE)
-#define CONFIG_PCMCIA_SLOT_B
-#define CONFIG_BD_IS_MHZ
-#endif
-
 /* The ADS board use SLOT_A */
 #ifdef CONFIG_ADS
 #define CONFIG_PCMCIA_SLOT_A
@@ -256,81 +250,6 @@ static irqreturn_t m8xx_interrupt(int irq, void *dev);
 
 #define PCMCIA_BMT_LIMIT (15*4)	/* Bus Monitor Timeout value */
 
-/* ------------------------------------------------------------------------- */
-/* board specific stuff:                                                     */
-/* voltage_set(), hardware_enable() and hardware_disable()                   */
-/* ------------------------------------------------------------------------- */
-/* RPX Boards from Embedded Planet                                           */
-
-#if defined(CONFIG_RPXCLASSIC) || defined(CONFIG_RPXLITE)
-
-/* The RPX boards seems to have it's bus monitor timeout set to 6*8 clocks.
- * SYPCR is write once only, therefore must the slowest memory be faster
- * than the bus monitor or we will get a machine check due to the bus timeout.
- */
-
-#define PCMCIA_BOARD_MSG "RPX CLASSIC or RPX LITE"
-
-#undef PCMCIA_BMT_LIMIT
-#define PCMCIA_BMT_LIMIT (6*8)
-
-static int voltage_set(int slot, int vcc, int vpp)
-{
-	u32 reg = 0;
-
-	switch (vcc) {
-	case 0:
-		break;
-	case 33:
-		reg |= BCSR1_PCVCTL4;
-		break;
-	case 50:
-		reg |= BCSR1_PCVCTL5;
-		break;
-	default:
-		return 1;
-	}
-
-	switch (vpp) {
-	case 0:
-		break;
-	case 33:
-	case 50:
-		if (vcc == vpp)
-			reg |= BCSR1_PCVCTL6;
-		else
-			return 1;
-		break;
-	case 120:
-		reg |= BCSR1_PCVCTL7;
-	default:
-		return 1;
-	}
-
-	if (!((vcc == 50) || (vcc == 0)))
-		return 1;
-
-	/* first, turn off all power */
-
-	out_be32(((u32 *) RPX_CSR_ADDR),
-		 in_be32(((u32 *) RPX_CSR_ADDR)) & ~(BCSR1_PCVCTL4 |
-						     BCSR1_PCVCTL5 |
-						     BCSR1_PCVCTL6 |
-						     BCSR1_PCVCTL7));
-
-	/* enable new powersettings */
-
-	out_be32(((u32 *) RPX_CSR_ADDR), in_be32(((u32 *) RPX_CSR_ADDR)) | reg);
-
-	return 0;
-}
-
-#define socket_get(_slot_) PCMCIA_SOCKET_KEY_5V
-#define hardware_enable(_slot_)	/* No hardware to enable */
-#define hardware_disable(_slot_)	/* No hardware to disable */
-
-#endif				/* CONFIG_RPXCLASSIC */
-
 /* FADS Boards from Motorola                                               */
 
 #if defined(CONFIG_FADS)
-- 
1.7.0.4

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

* [PATCH 4/9] Removing dead CONFIG_RPX(LITE|CLASSIC)
@ 2010-08-04 12:41   ` Christian Dietrich
  0 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Geert Uytterhoeven, Roman Zippel, David Woodhouse,
	Mike Frysinger, Jiri Kosina, Alexander Kurz, Michael Roth,
	Russell King, Ralf Baechle, Manuel Lauss, Tony Lindgren,
	Dominik Brodowski, Wolfram Sang, Grant Likely, Sean MacLennan,
	Anatolij Gustschin, linux-m68k, linux-kernel, linux-mtd,
	linux-pcmcia
  Cc: vamos-dev

CONFIG_RPX(LITE|CLASSIC) doesn't exist in Kconfig, therefore removing
all references to it from the source. Because RPX(LITE|CLASSIC) can't
be defined, MTD_RPXLITE can't be defined either. Therfore removing it to.

They were be introduced in 14cf11af6cf608eb8c23e989ddb17a715ddce109 and 
removed in df34403dcaacef541a67c955aebc37c51f53ca7c.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68k/include/asm/commproc.h |   17 --------
 drivers/mtd/maps/Kconfig         |   10 -----
 drivers/mtd/maps/Makefile        |    1 -
 drivers/mtd/maps/rpxlite.c       |   64 ------------------------------
 drivers/pcmcia/m8xx_pcmcia.c     |   81 --------------------------------------
 5 files changed, 0 insertions(+), 173 deletions(-)
 delete mode 100644 drivers/mtd/maps/rpxlite.c

diff --git a/arch/m68k/include/asm/commproc.h b/arch/m68k/include/asm/commproc.h
index b4f1d54..48f5466 100644
--- a/arch/m68k/include/asm/commproc.h
+++ b/arch/m68k/include/asm/commproc.h
@@ -480,23 +480,6 @@ typedef struct scc_enet {
 #define SICR_ENET_CLKRT	((uint)0x0000003d)
 #endif
 
-#ifdef CONFIG_RPXLITE
-/* This ENET stuff is for the MPC850 with ethernet on SCC2.  Some of
- * this may be unique to the RPX-Lite configuration.
- * Note TENA is on Port B.
- */
-#define PA_ENET_RXD	((ushort)0x0004)
-#define PA_ENET_TXD	((ushort)0x0008)
-#define PA_ENET_TCLK	((ushort)0x0200)
-#define PA_ENET_RCLK	((ushort)0x0800)
-#define PB_ENET_TENA	((uint)0x00002000)
-#define PC_ENET_CLSN	((ushort)0x0040)
-#define PC_ENET_RENA	((ushort)0x0080)
-
-#define SICR_ENET_MASK	((uint)0x0000ff00)
-#define SICR_ENET_CLKRT	((uint)0x00003d00)
-#endif
-
 /* SCC Event register as used by Ethernet.
 */
 #define SCCE_ENET_GRA	((ushort)0x0080)	/* Graceful stop complete */
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index f22bc9f..10261fc 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -286,16 +286,6 @@ config MTD_TQM8XXL
 	  code to communicate with the chips on the TQM8xxL board. More at
 	  <http://www.denx.de/embedded-ppc-en.html>.
 
-config MTD_RPXLITE
-	tristate "CFI Flash device mapped on RPX Lite or CLLF"
-	depends on MTD_CFI && (RPXCLASSIC || RPXLITE)
-	help
-	  The RPXLite PowerPC board has CFI-compliant chips mapped in
-	  a strange sparse mapping. This 'mapping' driver supports that
-	  arrangement, allowing the CFI probe and command set driver code
-	  to communicate with the chips on the RPXLite board. More at
-	  <http://www.embeddedplanet.com/>.
-
 config MTD_MBX860
 	tristate "System flash on MBX860 board"
 	depends on MTD_CFI && MBX
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile
index bb035cd..7821c71 100644
--- a/drivers/mtd/maps/Makefile
+++ b/drivers/mtd/maps/Makefile
@@ -27,7 +27,6 @@ obj-$(CONFIG_MTD_PHYSMAP_OF)	+= physmap_of.o
 obj-$(CONFIG_MTD_PISMO)		+= pismo.o
 obj-$(CONFIG_MTD_PMC_MSP_EVM)   += pmcmsp-flash.o
 obj-$(CONFIG_MTD_PCMCIA)	+= pcmciamtd.o
-obj-$(CONFIG_MTD_RPXLITE)	+= rpxlite.o
 obj-$(CONFIG_MTD_TQM8XXL)	+= tqm8xxl.o
 obj-$(CONFIG_MTD_SA1100)	+= sa1100-flash.o
 obj-$(CONFIG_MTD_SBC_GXX)	+= sbc_gxx.o
diff --git a/drivers/mtd/maps/rpxlite.c b/drivers/mtd/maps/rpxlite.c
deleted file mode 100644
index 3e3ef53..0000000
--- a/drivers/mtd/maps/rpxlite.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Handle mapping of the flash on the RPX Lite and CLLF boards
- */
-
-#include <linux/module.h>
-#include <linux/types.h>
-#include <linux/kernel.h>
-#include <linux/init.h>
-#include <asm/io.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/map.h>
-
-
-#define WINDOW_ADDR 0xfe000000
-#define WINDOW_SIZE 0x800000
-
-static struct mtd_info *mymtd;
-
-static struct map_info rpxlite_map = {
-	.name = "RPX",
-	.size = WINDOW_SIZE,
-	.bankwidth = 4,
-	.phys = WINDOW_ADDR,
-};
-
-static int __init init_rpxlite(void)
-{
-	printk(KERN_NOTICE "RPX Lite or CLLF flash device: %x at %x\n", WINDOW_SIZE*4, WINDOW_ADDR);
-	rpxlite_map.virt = ioremap(WINDOW_ADDR, WINDOW_SIZE * 4);
-
-	if (!rpxlite_map.virt) {
-		printk("Failed to ioremap\n");
-		return -EIO;
-	}
-	simple_map_init(&rpxlite_map);
-	mymtd = do_map_probe("cfi_probe", &rpxlite_map);
-	if (mymtd) {
-		mymtd->owner = THIS_MODULE;
-		add_mtd_device(mymtd);
-		return 0;
-	}
-
-	iounmap((void *)rpxlite_map.virt);
-	return -ENXIO;
-}
-
-static void __exit cleanup_rpxlite(void)
-{
-	if (mymtd) {
-		del_mtd_device(mymtd);
-		map_destroy(mymtd);
-	}
-	if (rpxlite_map.virt) {
-		iounmap((void *)rpxlite_map.virt);
-		rpxlite_map.virt = 0;
-	}
-}
-
-module_init(init_rpxlite);
-module_exit(cleanup_rpxlite);
-
-MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Arnold Christensen <AKC@pel.dk>");
-MODULE_DESCRIPTION("MTD map driver for RPX Lite and CLLF boards");
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c
index 25e5e30..e56dd87 100644
--- a/drivers/pcmcia/m8xx_pcmcia.c
+++ b/drivers/pcmcia/m8xx_pcmcia.c
@@ -71,12 +71,6 @@ MODULE_LICENSE("Dual MPL/GPL");
 
 #if !defined(CONFIG_PCMCIA_SLOT_A) && !defined(CONFIG_PCMCIA_SLOT_B)
 
-/* The RPX series use SLOT_B */
-#if defined(CONFIG_RPXCLASSIC) || defined(CONFIG_RPXLITE)
-#define CONFIG_PCMCIA_SLOT_B
-#define CONFIG_BD_IS_MHZ
-#endif
-
 /* The ADS board use SLOT_A */
 #ifdef CONFIG_ADS
 #define CONFIG_PCMCIA_SLOT_A
@@ -256,81 +250,6 @@ static irqreturn_t m8xx_interrupt(int irq, void *dev);
 
 #define PCMCIA_BMT_LIMIT (15*4)	/* Bus Monitor Timeout value */
 
-/* ------------------------------------------------------------------------- */
-/* board specific stuff:                                                     */
-/* voltage_set(), hardware_enable() and hardware_disable()                   */
-/* ------------------------------------------------------------------------- */
-/* RPX Boards from Embedded Planet                                           */
-
-#if defined(CONFIG_RPXCLASSIC) || defined(CONFIG_RPXLITE)
-
-/* The RPX boards seems to have it's bus monitor timeout set to 6*8 clocks.
- * SYPCR is write once only, therefore must the slowest memory be faster
- * than the bus monitor or we will get a machine check due to the bus timeout.
- */
-
-#define PCMCIA_BOARD_MSG "RPX CLASSIC or RPX LITE"
-
-#undef PCMCIA_BMT_LIMIT
-#define PCMCIA_BMT_LIMIT (6*8)
-
-static int voltage_set(int slot, int vcc, int vpp)
-{
-	u32 reg = 0;
-
-	switch (vcc) {
-	case 0:
-		break;
-	case 33:
-		reg |= BCSR1_PCVCTL4;
-		break;
-	case 50:
-		reg |= BCSR1_PCVCTL5;
-		break;
-	default:
-		return 1;
-	}
-
-	switch (vpp) {
-	case 0:
-		break;
-	case 33:
-	case 50:
-		if (vcc == vpp)
-			reg |= BCSR1_PCVCTL6;
-		else
-			return 1;
-		break;
-	case 120:
-		reg |= BCSR1_PCVCTL7;
-	default:
-		return 1;
-	}
-
-	if (!((vcc == 50) || (vcc == 0)))
-		return 1;
-
-	/* first, turn off all power */
-
-	out_be32(((u32 *) RPX_CSR_ADDR),
-		 in_be32(((u32 *) RPX_CSR_ADDR)) & ~(BCSR1_PCVCTL4 |
-						     BCSR1_PCVCTL5 |
-						     BCSR1_PCVCTL6 |
-						     BCSR1_PCVCTL7));
-
-	/* enable new powersettings */
-
-	out_be32(((u32 *) RPX_CSR_ADDR), in_be32(((u32 *) RPX_CSR_ADDR)) | reg);
-
-	return 0;
-}
-
-#define socket_get(_slot_) PCMCIA_SOCKET_KEY_5V
-#define hardware_enable(_slot_)	/* No hardware to enable */
-#define hardware_disable(_slot_)	/* No hardware to disable */
-
-#endif				/* CONFIG_RPXCLASSIC */
-
 /* FADS Boards from Motorola                                               */
 
 #if defined(CONFIG_FADS)
-- 
1.7.0.4

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

* [PATCH 5/9] arch/m68knommu: Removing dead M68000 config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
                   ` (5 preceding siblings ...)
  2010-08-04 12:41 ` Christian Dietrich
@ 2010-08-04 12:41 ` Christian Dietrich
  2010-08-04 12:42 ` [PATCH 6/9] arch/m68knommu: Removing dead RELOCATE " Christian Dietrich
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:41 UTC (permalink / raw)
  To: Greg Ungerer, Lennart Sorensen, linux-kernel; +Cc: vamos-dev

CONFIG_M68000 doesn't exist in Kconfig, therefore removing
all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68knommu/kernel/setup.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/m68knommu/kernel/setup.c b/arch/m68knommu/kernel/setup.c
index ba92b90..c684adf 100644
--- a/arch/m68knommu/kernel/setup.c
+++ b/arch/m68knommu/kernel/setup.c
@@ -54,9 +54,6 @@ void (*mach_reset)(void);
 void (*mach_halt)(void);
 void (*mach_power_off)(void);
 
-#ifdef CONFIG_M68000
-	#define CPU "MC68000"
-#endif
 #ifdef CONFIG_M68328
 	#define CPU "MC68328"
 #endif
-- 
1.7.0.4


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

* [PATCH 6/9] arch/m68knommu: Removing dead RELOCATE config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
                   ` (6 preceding siblings ...)
  2010-08-04 12:41 ` [PATCH 5/9] arch/m68knommu: Removing dead M68000 config option Christian Dietrich
@ 2010-08-04 12:42 ` Christian Dietrich
  2010-08-04 12:42 ` [PATCH 7/9] arch/m68knommu: Removing dead M68KFPU_EMU " Christian Dietrich
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:42 UTC (permalink / raw)
  To: Greg Ungerer, linux-kernel; +Cc: vamos-dev

CONFIG_RELOCATE doesn't exist in Kconfig, therefore removing
all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68knommu/platform/68328/head-ram.S |   27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/arch/m68knommu/platform/68328/head-ram.S b/arch/m68knommu/platform/68328/head-ram.S
index 252b80b..7f1aeea 100644
--- a/arch/m68knommu/platform/68328/head-ram.S
+++ b/arch/m68knommu/platform/68328/head-ram.S
@@ -67,33 +67,6 @@ pclp1:
 	beq	pclp1
 #endif /* DEBUG */
 
-#ifdef CONFIG_RELOCATE
-	/* Copy me to RAM */
-	moveal	#__rom_start, %a0
-	moveal	#_stext, %a1
-	moveal	#_edata, %a2
-
-	/* Copy %a0 to %a1 until %a1 == %a2 */
-LD1:
-	movel	%a0@+, %d0
-	movel	%d0, %a1@+
-	cmpal	%a1, %a2
-	bhi	LD1
-	
-#ifdef DEBUG
-	moveq	#74, %d7		/* 'J' */
-	moveb	%d7,0xfffff907          /* No absolute addresses */
-pclp2:
-	movew	0xfffff906, %d7
-	andw	#0x2000, %d7
-	beq	pclp2
-#endif /* DEBUG */
-	/* jump into the RAM copy */
-	jmp     ram_jump
-ram_jump:
-
-#endif /* CONFIG_RELOCATE */
-
 #ifdef DEBUG
 	moveq	#82, %d7		/* 'R' */
 	moveb	%d7,0xfffff907          /* No absolute addresses */
-- 
1.7.0.4


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

* [PATCH 7/9] arch/m68knommu: Removing dead M68KFPU_EMU config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
                   ` (7 preceding siblings ...)
  2010-08-04 12:42 ` [PATCH 6/9] arch/m68knommu: Removing dead RELOCATE " Christian Dietrich
@ 2010-08-04 12:42 ` Christian Dietrich
  2010-08-04 12:42 ` [PATCH 8/9] arch/m68knommu: Removing dead RAM_{16,32}_MB " Christian Dietrich
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:42 UTC (permalink / raw)
  To: Greg Ungerer, Andrew Morton, Geert Uytterhoeven,
	Christoph Hellwig, Maxim Kuvyrkov, linux-kernel
  Cc: vamos-dev

CONFIG_M68KFPU_EMU doesn't exist in Kconfig, therefore removing
all references to it from the source. This Flags seems to exist only
on m68k with mmu, and this dead blocks are copy paste.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68knommu/kernel/ptrace.c |   18 ------------------
 arch/m68knommu/kernel/traps.c  |   13 -------------
 2 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/arch/m68knommu/kernel/ptrace.c b/arch/m68knommu/kernel/ptrace.c
index f6be124..a32e2de 100644
--- a/arch/m68knommu/kernel/ptrace.c
+++ b/arch/m68knommu/kernel/ptrace.c
@@ -134,14 +134,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 					tmp >>= 16;
 			} else if (addr >= 21 && addr < 49) {
 				tmp = child->thread.fp[addr - 21];
-#ifdef CONFIG_M68KFPU_EMU
-				/* Convert internal fpu reg representation
-				 * into long double format
-				 */
-				if (FPU_IS_EMU && (addr < 45) && !(addr % 3))
-					tmp = ((tmp & 0xffff0000) << 15) |
-					      ((tmp & 0x0000ffff) << 16);
-#endif
 			} else if (addr == 49) {
 				tmp = child->mm->start_code;
 			} else if (addr == 50) {
@@ -175,16 +167,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 			}
 			if (addr >= 21 && addr < 48)
 			{
-#ifdef CONFIG_M68KFPU_EMU
-				/* Convert long double format
-				 * into internal fpu reg representation
-				 */
-				if (FPU_IS_EMU && (addr < 45) && !(addr % 3)) {
-					data = (unsigned long)data << 15;
-					data = (data & 0xffff0000) |
-					       ((data & 0x0000ffff) >> 1);
-				}
-#endif
 				child->thread.fp[addr - 21] = data;
 				ret = 0;
 			}
diff --git a/arch/m68knommu/kernel/traps.c b/arch/m68knommu/kernel/traps.c
index 3739c8f..e8b813d 100644
--- a/arch/m68knommu/kernel/traps.c
+++ b/arch/m68knommu/kernel/traps.c
@@ -360,16 +360,3 @@ void show_stack(struct task_struct *task, unsigned long *stack)
 	else
 		__show_stack(task, stack);
 }
-
-#ifdef CONFIG_M68KFPU_EMU
-asmlinkage void fpemu_signal(int signal, int code, void *addr)
-{
-	siginfo_t info;
-
-	info.si_signo = signal;
-	info.si_errno = 0;
-	info.si_code = code;
-	info.si_addr = addr;
-	force_sig_info(signal, &info, current);
-}
-#endif
-- 
1.7.0.4


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

* [PATCH 8/9] arch/m68knommu: Removing dead RAM_{16,32}_MB config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
                   ` (8 preceding siblings ...)
  2010-08-04 12:42 ` [PATCH 7/9] arch/m68knommu: Removing dead M68KFPU_EMU " Christian Dietrich
@ 2010-08-04 12:42 ` Christian Dietrich
  2010-08-04 12:42 ` [PATCH 9/9] arch/m68knommu: Removing dead 68328_SERIAL_UART2 " Christian Dietrich
  2010-08-09  5:50 ` [PATCH 0/9] Removing dead code Greg Ungerer
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:42 UTC (permalink / raw)
  To: Greg Ungerer, linux-kernel; +Cc: vamos-dev

CONFIG_RAM_{16,32}_MB doesn't exist in Kconfig, therefore removing
all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68knommu/platform/68328/head-de2.S |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/arch/m68knommu/platform/68328/head-de2.S b/arch/m68knommu/platform/68328/head-de2.S
index 92d9645..f632fdc 100644
--- a/arch/m68knommu/platform/68328/head-de2.S
+++ b/arch/m68knommu/platform/68328/head-de2.S
@@ -1,11 +1,5 @@
 
-#if defined(CONFIG_RAM32MB)
-#define	MEM_END	0x02000000	/* Memory size 32Mb */
-#elif defined(CONFIG_RAM16MB)
-#define	MEM_END	0x01000000	/* Memory size 16Mb */
-#else
 #define	MEM_END	0x00800000	/* Memory size 8Mb */
-#endif
 
 #undef CRT_DEBUG
 
-- 
1.7.0.4


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

* [PATCH 9/9] arch/m68knommu: Removing dead 68328_SERIAL_UART2 config option
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
                   ` (9 preceding siblings ...)
  2010-08-04 12:42 ` [PATCH 8/9] arch/m68knommu: Removing dead RAM_{16,32}_MB " Christian Dietrich
@ 2010-08-04 12:42 ` Christian Dietrich
  2010-08-09  5:50 ` [PATCH 0/9] Removing dead code Greg Ungerer
  11 siblings, 0 replies; 26+ messages in thread
From: Christian Dietrich @ 2010-08-04 12:42 UTC (permalink / raw)
  To: Greg Ungerer, linux-kernel; +Cc: vamos-dev

CONFIG_68328_SERIAL_UART2 doesn't exist in Kconfig, therefore removing
all references to it from the source.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/m68knommu/platform/68VZ328/config.c |    5 -----
 drivers/serial/68328serial.h             |    5 -----
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/arch/m68knommu/platform/68VZ328/config.c b/arch/m68knommu/platform/68VZ328/config.c
index fc5c630..eabaabe 100644
--- a/arch/m68knommu/platform/68VZ328/config.c
+++ b/arch/m68knommu/platform/68VZ328/config.c
@@ -90,11 +90,6 @@ static void init_hardware(char *command, int size)
 	PDIQEG &= ~PD(1);
 	PDIRQEN |= PD(1);			/* IRQ enabled */
 
-#ifdef CONFIG_68328_SERIAL_UART2
-	/* Enable RXD TXD port bits to enable UART2 */
-	PJSEL &= ~(PJ(5) | PJ(4));
-#endif
-
 #ifdef CONFIG_INIT_LCD
 	/* initialize LCD controller */
 	LSSA = (long) screen_bits;
diff --git a/drivers/serial/68328serial.h b/drivers/serial/68328serial.h
index 58aa215..664ceb0 100644
--- a/drivers/serial/68328serial.h
+++ b/drivers/serial/68328serial.h
@@ -181,13 +181,8 @@ struct m68k_serial {
 /* 
  * Define the number of ports supported and their irqs.
  */
-#ifndef CONFIG_68328_SERIAL_UART2
 #define NR_PORTS 1
 #define UART_IRQ_DEFNS {UART_IRQ_NUM}
-#else
-#define NR_PORTS 2
-#define UART_IRQ_DEFNS {UART1_IRQ_NUM, UART2_IRQ_NUM}
-#endif
 
 #endif /* __KERNEL__ */
 #endif /* !(_MC683XX_SERIAL_H) */
-- 
1.7.0.4


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

* Re: [PATCH 0/9] Removing dead code
  2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
                   ` (10 preceding siblings ...)
  2010-08-04 12:42 ` [PATCH 9/9] arch/m68knommu: Removing dead 68328_SERIAL_UART2 " Christian Dietrich
@ 2010-08-09  5:50 ` Greg Ungerer
  2010-08-09  9:03   ` Christian Dietrich
  11 siblings, 1 reply; 26+ messages in thread
From: Greg Ungerer @ 2010-08-09  5:50 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Roman Zippel, John Stultz, Dominik Brodowski, linux-kernel,
	Grant Likely, Alexander Kurz, linux-mtd, Michael Roth,
	Greg Ungerer, Christoph Hellwig, Finn Thain, Tony Lindgren,
	vamos-dev, Geert Uytterhoeven, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, linux-pcmcia, Mike Frysinger,
	Sean MacLennan, Joe Perches, linux-m68k, Maxim Kuvyrkov,
	Thomas Gleixner, Jiri Kosina, Greg Kroah-Hartman, Wolfram Sang,
	Ralf Baechle, Martin Schwidefsky, Manuel Lauss, Andrew Morton,
	David Woodhouse

Hi Christian,

Christian Dietrich wrote:
>         As part of the VAMOS[0] research project at the University of
> Erlangen we are looking at multiple integrity errors in linux'
> configuration system.
> 
>         I've been running a check on the arch/m68k{,nommu} sourcetree for
> config Items not defined in Kconfig and found 9 such cases. Sourcecode
> blocks depending on these Items are not reachable from a vanilla
> kernel -- dead code. I've seen such dead blocks made on purpose
> e.g. while integrating new features into the kernel but generally
> they're just useless.
> 
>         Each of the patches in this patchset removes on such dead
> config Item, I'd be glad if you consider applying them. I've been
> doing deeper analysis of such issues before and can do so again but
> I'm not so sure they were fastly usefull.
> 
> In lack of an m68k cross compiler i was not able to build the kernel
> against this patches. I don't think that they will crash the
> compiling, but i'm not totally sure.
> 
>         Please keep me informed of this patch getting confirmed /
> merged so we can keep track of it.

I don't have any problems with any of these from a
m68knommu point of view. I can merge them via the
m68knommu git tree if you want?

Regards
Greg



> [0] http://vamos1.informatik.uni-erlangen.de/
> 
> Christian Dietrich (9):
>   arch/m68k: Removing dead GG2 config option
>   arch/m68k: Removing dead BSEIP config option
>   arch/m68k{,nommu}: Removing dead SMP config option
>   Removing dead CONFIG_RPX(LITE|CLASSIC)
>   arch/m68knommu: Removing dead M68000 config option
>   arch/m68knommu: Removing dead RELOCATE config option
>   arch/m68knommu: Removing dead M68KFPU_EMU config option
>   arch/m68knommu: Removing dead RAM_{16,32}_MB config option
>   arch/m68knommu: Removing dead 68328_SERIAL_UART2 config option
> 
>  arch/m68k/Kconfig                        |    4 +-
>  arch/m68k/include/asm/amigahw.h          |    1 -
>  arch/m68k/include/asm/commproc.h         |   39 --------------
>  arch/m68k/include/asm/io_mm.h            |   37 --------------
>  arch/m68k/include/asm/system_mm.h        |    2 -
>  arch/m68k/include/asm/system_no.h        |    9 ---
>  arch/m68k/kernel/setup.c                 |    6 --
>  arch/m68k/kernel/time.c                  |    2 -
>  arch/m68k/sun3/sun3ints.c                |    8 +--
>  arch/m68knommu/kernel/ptrace.c           |   18 -------
>  arch/m68knommu/kernel/setup.c            |    3 -
>  arch/m68knommu/kernel/time.c             |    3 +-
>  arch/m68knommu/kernel/traps.c            |   13 -----
>  arch/m68knommu/platform/68328/head-de2.S |    6 --
>  arch/m68knommu/platform/68328/head-ram.S |   27 ----------
>  arch/m68knommu/platform/68VZ328/config.c |    5 --
>  drivers/mtd/maps/Kconfig                 |   10 ----
>  drivers/mtd/maps/Makefile                |    1 -
>  drivers/mtd/maps/rpxlite.c               |   64 -----------------------
>  drivers/pcmcia/m8xx_pcmcia.c             |   81 ------------------------------
>  drivers/serial/68328serial.h             |    5 --
>  21 files changed, 6 insertions(+), 338 deletions(-)
>  delete mode 100644 drivers/mtd/maps/rpxlite.c
> 
> 


-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

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

* Re: [PATCH 0/9] Removing dead code
  2010-08-09  5:50 ` [PATCH 0/9] Removing dead code Greg Ungerer
@ 2010-08-09  9:03   ` Christian Dietrich
  2010-08-23 10:07     ` Christian Dietrich
  0 siblings, 1 reply; 26+ messages in thread
From: Christian Dietrich @ 2010-08-09  9:03 UTC (permalink / raw)
  To: Greg Ungerer
  Cc: Roman Zippel, John Stultz, Dominik Brodowski, linux-kernel,
	Grant Likely, Alexander Kurz, linux-mtd, Michael Roth,
	Greg Ungerer, Christoph Hellwig, Finn Thain, Tony Lindgren,
	vamos-dev, Geert Uytterhoeven, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, linux-pcmcia, Mike Frysinger,
	Sean MacLennan, Joe Perches, linux-m68k, Maxim Kuvyrkov,
	Thomas Gleixner, Jiri Kosina, Greg Kroah-Hartman, Wolfram Sang,
	Ralf Baechle, Martin Schwidefsky, Manuel Lauss, Andrew Morton,
	David Woodhouse

> Hi Christian,
> I don't have any problems with any of these from a
> m68knommu point of view. I can merge them via the
> m68knommu git tree if you want?

If there aren't any complaints from the m68k people i'm fine with that.

greetz didi
-- 
(λ x . x x) (λ x . x x) -- See how beatiful the lambda is
No documentation is better than bad documentation
-- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.

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

* Re: [PATCH 0/9] Removing dead code
  2010-08-09  9:03   ` Christian Dietrich
@ 2010-08-23 10:07     ` Christian Dietrich
  2010-08-23 14:46         ` Geert Uytterhoeven
  0 siblings, 1 reply; 26+ messages in thread
From: Christian Dietrich @ 2010-08-23 10:07 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Roman Zippel, John Stultz, Dominik Brodowski, linux-kernel,
	Grant Likely, Alexander Kurz, linux-mtd, Michael Roth,
	Greg Ungerer, Christoph Hellwig, Finn Thain, Tony Lindgren,
	vamos-dev, Geert Uytterhoeven, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, Greg Ungerer, linux-pcmcia,
	Mike Frysinger, Sean MacLennan, Joe Perches, linux-m68k,
	Maxim Kuvyrkov, Thomas Gleixner, Jiri Kosina, Greg Kroah-Hartman,
	Wolfram Sang, Ralf Baechle, Martin Schwidefsky, Manuel Lauss,
	Andrew Morton, David Woodhouse

Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> writes:

>> Hi Christian,
>> I don't have any problems with any of these from a
>> m68knommu point of view. I can merge them via the
>> m68knommu git tree if you want?
>
> If there aren't any complaints from the m68k people i'm fine with
> that.

Hm, last message was two weeks ago, so perhaps the m68k people (with
mmu) have no complaints with these patches and they can be included in
the m68knommu tree?

greetz didi
-- 
(λ x . x x) (λ x . x x) -- See how beatiful the lambda is
No documentation is better than bad documentation
-- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.

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

* Re: [PATCH 0/9] Removing dead code
  2010-08-23 10:07     ` Christian Dietrich
@ 2010-08-23 14:46         ` Geert Uytterhoeven
  0 siblings, 0 replies; 26+ messages in thread
From: Geert Uytterhoeven @ 2010-08-23 14:46 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: linux-m68k, Roman Zippel, John Stultz, Dominik Brodowski,
	linux-kernel, Grant Likely, Alexander Kurz, linux-mtd,
	Michael Roth, Greg Ungerer, Christoph Hellwig, Finn Thain,
	Tony Lindgren, vamos-dev, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, Greg Ungerer, linux-pcmcia,
	Mike Frysinger, Sean MacLennan, Joe Perches, Maxim Kuvyrkov

On Mon, Aug 23, 2010 at 12:07, Christian Dietrich
<qy03fugy@stud.informatik.uni-erlangen.de> wrote:
> Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> writes:
>>> I don't have any problems with any of these from a
>>> m68knommu point of view. I can merge them via the
>>> m68knommu git tree if you want?
>>
>> If there aren't any complaints from the m68k people i'm fine with
>> that.
>
> Hm, last message was two weeks ago, so perhaps the m68k people (with
> mmu) have no complaints with these patches and they can be included in
> the m68knommu tree?

Sorry, I've been a bit too busy with other things...

  - arch/m68k: Removing dead GG2 config option
    Fine for me
  - arch/m68k{,nommu}: Removing dead SMP config option
    Are there any SMP m68k systems coming?
    If yes, we may want to keep it. From the other hand, probably many
other places
    need adjustment for SMP too, so the few checks for CONFIG_SMP may give a
    false feeling of readiness for SMP.
  - arch/m68knommu: Removing dead M68KFPU_EMU config option
    With the imminent(?) merge of mmu and nommu, perhaps we want to keep it?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

_______________________________________________
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia

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

* Re: [PATCH 0/9] Removing dead code
@ 2010-08-23 14:46         ` Geert Uytterhoeven
  0 siblings, 0 replies; 26+ messages in thread
From: Geert Uytterhoeven @ 2010-08-23 14:46 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: linux-m68k, Roman Zippel, John Stultz, Dominik Brodowski,
	linux-kernel, Grant Likely, Alexander Kurz, linux-mtd,
	Michael Roth, Greg Ungerer, Christoph Hellwig, Finn Thain,
	Tony Lindgren, vamos-dev, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, Greg Ungerer, linux-pcmcia,
	Mike Frysinger, Sean MacLennan, Joe Perches, Maxim Kuvyrkov,
	Thomas Gleixner, Jiri Kosina, Greg Kroah-Hartman, Wolfram Sang,
	Ralf Baechle, Martin Schwidefsky, Manuel Lauss, Andrew Morton,
	David Woodhouse

On Mon, Aug 23, 2010 at 12:07, Christian Dietrich
<qy03fugy@stud.informatik.uni-erlangen.de> wrote:
> Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> writes:
>>> I don't have any problems with any of these from a
>>> m68knommu point of view. I can merge them via the
>>> m68knommu git tree if you want?
>>
>> If there aren't any complaints from the m68k people i'm fine with
>> that.
>
> Hm, last message was two weeks ago, so perhaps the m68k people (with
> mmu) have no complaints with these patches and they can be included in
> the m68knommu tree?

Sorry, I've been a bit too busy with other things...

  - arch/m68k: Removing dead GG2 config option
    Fine for me
  - arch/m68k{,nommu}: Removing dead SMP config option
    Are there any SMP m68k systems coming?
    If yes, we may want to keep it. From the other hand, probably many
other places
    need adjustment for SMP too, so the few checks for CONFIG_SMP may give a
    false feeling of readiness for SMP.
  - arch/m68knommu: Removing dead M68KFPU_EMU config option
    With the imminent(?) merge of mmu and nommu, perhaps we want to keep it?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 0/9] Removing dead code
  2010-08-23 14:46         ` Geert Uytterhoeven
@ 2010-08-27  6:14           ` Greg Ungerer
  -1 siblings, 0 replies; 26+ messages in thread
From: Greg Ungerer @ 2010-08-27  6:14 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: linux-m68k, Roman Zippel, John Stultz, Dominik Brodowski,
	linux-kernel, Grant Likely, Alexander Kurz, linux-mtd,
	Michael Roth, Greg Ungerer, Christoph Hellwig, Finn Thain,
	Tony Lindgren, vamos-dev, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, linux-pcmcia, Mike Frysinger,
	Sean MacLennan, Joe Perches, Maxim Kuvyrkov, Thomas Gleixner

Geert Uytterhoeven wrote:
> On Mon, Aug 23, 2010 at 12:07, Christian Dietrich
> <qy03fugy@stud.informatik.uni-erlangen.de> wrote:
>> Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> writes:
>>>> I don't have any problems with any of these from a
>>>> m68knommu point of view. I can merge them via the
>>>> m68knommu git tree if you want?
>>> If there aren't any complaints from the m68k people i'm fine with
>>> that.
>> Hm, last message was two weeks ago, so perhaps the m68k people (with
>> mmu) have no complaints with these patches and they can be included in
>> the m68knommu tree?
> 
> Sorry, I've been a bit too busy with other things...
> 
>   - arch/m68k: Removing dead GG2 config option
>     Fine for me
>   - arch/m68k{,nommu}: Removing dead SMP config option
>     Are there any SMP m68k systems coming?
>     If yes, we may want to keep it. From the other hand, probably many
> other places
>     need adjustment for SMP too, so the few checks for CONFIG_SMP may give a
>     false feeling of readiness for SMP.
>   - arch/m68knommu: Removing dead M68KFPU_EMU config option
>     With the imminent(?) merge of mmu and nommu, perhaps we want to keep it?

I think what is in there is so old and decrepit that it is more
of a hindrance than a help :-)  When we merge we should just be
using what is currently in the m68k part of the source. So I am
happy to remove the m68knommu FPU code right now.

Regards
Greg


> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
> 


-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH 0/9] Removing dead code
@ 2010-08-27  6:14           ` Greg Ungerer
  0 siblings, 0 replies; 26+ messages in thread
From: Greg Ungerer @ 2010-08-27  6:14 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: linux-m68k, Roman Zippel, John Stultz, Dominik Brodowski,
	linux-kernel, Grant Likely, Alexander Kurz, linux-mtd,
	Michael Roth, Greg Ungerer, Christoph Hellwig, Finn Thain,
	Tony Lindgren, vamos-dev, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, linux-pcmcia, Mike Frysinger,
	Sean MacLennan, Joe Perches, Maxim Kuvyrkov, Thomas Gleixner,
	Christian Dietrich, Jiri Kosina, Greg Kroah-Hartman,
	Wolfram Sang, Ralf Baechle, Martin Schwidefsky, Manuel Lauss,
	Andrew Morton, David Woodhouse

Geert Uytterhoeven wrote:
> On Mon, Aug 23, 2010 at 12:07, Christian Dietrich
> <qy03fugy@stud.informatik.uni-erlangen.de> wrote:
>> Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> writes:
>>>> I don't have any problems with any of these from a
>>>> m68knommu point of view. I can merge them via the
>>>> m68knommu git tree if you want?
>>> If there aren't any complaints from the m68k people i'm fine with
>>> that.
>> Hm, last message was two weeks ago, so perhaps the m68k people (with
>> mmu) have no complaints with these patches and they can be included in
>> the m68knommu tree?
> 
> Sorry, I've been a bit too busy with other things...
> 
>   - arch/m68k: Removing dead GG2 config option
>     Fine for me
>   - arch/m68k{,nommu}: Removing dead SMP config option
>     Are there any SMP m68k systems coming?
>     If yes, we may want to keep it. From the other hand, probably many
> other places
>     need adjustment for SMP too, so the few checks for CONFIG_SMP may give a
>     false feeling of readiness for SMP.
>   - arch/m68knommu: Removing dead M68KFPU_EMU config option
>     With the imminent(?) merge of mmu and nommu, perhaps we want to keep it?

I think what is in there is so old and decrepit that it is more
of a hindrance than a help :-)  When we merge we should just be
using what is currently in the m68k part of the source. So I am
happy to remove the m68knommu FPU code right now.

Regards
Greg


> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
> 


-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

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

* Re: [PATCH 0/9] Removing dead code
  2010-08-27  6:14           ` Greg Ungerer
@ 2010-08-27  7:14             ` Geert Uytterhoeven
  -1 siblings, 0 replies; 26+ messages in thread
From: Geert Uytterhoeven @ 2010-08-27  7:14 UTC (permalink / raw)
  To: Greg Ungerer
  Cc: linux-m68k, Roman Zippel, John Stultz, Dominik Brodowski,
	linux-kernel, Grant Likely, Alexander Kurz, linux-mtd,
	Michael Roth, Greg Ungerer, Christoph Hellwig, Finn Thain,
	Tony Lindgren, vamos-dev, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, linux-pcmcia, Mike Frysinger,
	Sean MacLennan, Joe Perches, Maxim Kuvyrkov, Thomas Gleixner

On Fri, Aug 27, 2010 at 08:14, Greg Ungerer <gerg@snapgear.com> wrote:
> Geert Uytterhoeven wrote:
>>
>> On Mon, Aug 23, 2010 at 12:07, Christian Dietrich
>> <qy03fugy@stud.informatik.uni-erlangen.de> wrote:
>>>
>>> Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> writes:
>>>>>
>>>>> I don't have any problems with any of these from a
>>>>> m68knommu point of view. I can merge them via the
>>>>> m68knommu git tree if you want?
>>>>
>>>> If there aren't any complaints from the m68k people i'm fine with
>>>> that.
>>>
>>> Hm, last message was two weeks ago, so perhaps the m68k people (with
>>> mmu) have no complaints with these patches and they can be included in
>>> the m68knommu tree?
>>
>> Sorry, I've been a bit too busy with other things...
>>
>>  - arch/m68k: Removing dead GG2 config option
>>    Fine for me
>>  - arch/m68k{,nommu}: Removing dead SMP config option
>>    Are there any SMP m68k systems coming?
>>    If yes, we may want to keep it. From the other hand, probably many
>> other places
>>    need adjustment for SMP too, so the few checks for CONFIG_SMP may give
>> a
>>    false feeling of readiness for SMP.
>>  - arch/m68knommu: Removing dead M68KFPU_EMU config option
>>    With the imminent(?) merge of mmu and nommu, perhaps we want to keep
>> it?
>
> I think what is in there is so old and decrepit that it is more
> of a hindrance than a help :-)  When we merge we should just be
> using what is currently in the m68k part of the source. So I am
> happy to remove the m68knommu FPU code right now.

OK, fine for me!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH 0/9] Removing dead code
@ 2010-08-27  7:14             ` Geert Uytterhoeven
  0 siblings, 0 replies; 26+ messages in thread
From: Geert Uytterhoeven @ 2010-08-27  7:14 UTC (permalink / raw)
  To: Greg Ungerer
  Cc: linux-m68k, Roman Zippel, John Stultz, Dominik Brodowski,
	linux-kernel, Grant Likely, Alexander Kurz, linux-mtd,
	Michael Roth, Greg Ungerer, Christoph Hellwig, Finn Thain,
	Tony Lindgren, vamos-dev, Lennart Sorensen, Russell King,
	Anatolij Gustschin, Sam Creasey, linux-pcmcia, Mike Frysinger,
	Sean MacLennan, Joe Perches, Maxim Kuvyrkov, Thomas Gleixner,
	Christian Dietrich, Jiri Kosina, Greg Kroah-Hartman,
	Wolfram Sang, Ralf Baechle, Martin Schwidefsky, Manuel Lauss,
	Andrew Morton, David Woodhouse

On Fri, Aug 27, 2010 at 08:14, Greg Ungerer <gerg@snapgear.com> wrote:
> Geert Uytterhoeven wrote:
>>
>> On Mon, Aug 23, 2010 at 12:07, Christian Dietrich
>> <qy03fugy@stud.informatik.uni-erlangen.de> wrote:
>>>
>>> Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> writes:
>>>>>
>>>>> I don't have any problems with any of these from a
>>>>> m68knommu point of view. I can merge them via the
>>>>> m68knommu git tree if you want?
>>>>
>>>> If there aren't any complaints from the m68k people i'm fine with
>>>> that.
>>>
>>> Hm, last message was two weeks ago, so perhaps the m68k people (with
>>> mmu) have no complaints with these patches and they can be included in
>>> the m68knommu tree?
>>
>> Sorry, I've been a bit too busy with other things...
>>
>>  - arch/m68k: Removing dead GG2 config option
>>    Fine for me
>>  - arch/m68k{,nommu}: Removing dead SMP config option
>>    Are there any SMP m68k systems coming?
>>    If yes, we may want to keep it. From the other hand, probably many
>> other places
>>    need adjustment for SMP too, so the few checks for CONFIG_SMP may give
>> a
>>    false feeling of readiness for SMP.
>>  - arch/m68knommu: Removing dead M68KFPU_EMU config option
>>    With the imminent(?) merge of mmu and nommu, perhaps we want to keep
>> it?
>
> I think what is in there is so old and decrepit that it is more
> of a hindrance than a help :-)  When we merge we should just be
> using what is currently in the m68k part of the source. So I am
> happy to remove the m68knommu FPU code right now.

OK, fine for me!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 1/9] arch/m68k: Removing dead GG2 config option
  2010-08-04 12:41   ` Christian Dietrich
  (?)
@ 2010-09-13 18:09   ` Geert Uytterhoeven
  -1 siblings, 0 replies; 26+ messages in thread
From: Geert Uytterhoeven @ 2010-09-13 18:09 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Roman Zippel, Andrew Morton, Finn Thain, Greg Kroah-Hartman,
	John Stultz, linux-m68k, linux-kernel, vamos-dev

On Wed, Aug 4, 2010 at 14:41, Christian Dietrich
<qy03fugy@stud.informatik.uni-erlangen.de> wrote:
> CONFIG_GG2 doesn't exist in Kconfig, therefore removing
> all references to it from the source.
>
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>

Applied

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 3/9] arch/m68k{,nommu}: Removing dead SMP config option
  2010-08-04 12:41 ` [PATCH 3/9] arch/m68k{,nommu}: Removing dead SMP " Christian Dietrich
@ 2010-09-13 18:14   ` Geert Uytterhoeven
  0 siblings, 0 replies; 26+ messages in thread
From: Geert Uytterhoeven @ 2010-09-13 18:14 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Roman Zippel, John Stultz, Andrew Morton, Thomas Gleixner,
	Sam Creasey, Greg Ungerer, Martin Schwidefsky, Joe Perches,
	linux-m68k, linux-kernel, vamos-dev

On Wed, Aug 4, 2010 at 14:41, Christian Dietrich
<qy03fugy@stud.informatik.uni-erlangen.de> wrote:
> CONFIG_SMP doesn't exist in Kconfig (for this architecure), therefore
> removing all references to it from the source.
>
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>

Applied

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2010-09-13 18:14 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-04 12:41 [PATCH 0/9] Removing dead code Christian Dietrich
2010-08-04 12:41 ` [PATCH 1/9] arch/m68k: Removing dead GG2 config option Christian Dietrich
2010-08-04 12:41   ` Christian Dietrich
2010-09-13 18:09   ` Geert Uytterhoeven
2010-08-04 12:41 ` [PATCH 2/9] arch/m68k: Removing dead BSEIP " Christian Dietrich
2010-08-04 12:41   ` Christian Dietrich
2010-08-04 12:41 ` [PATCH 3/9] arch/m68k{,nommu}: Removing dead SMP " Christian Dietrich
2010-09-13 18:14   ` Geert Uytterhoeven
2010-08-04 12:41 ` Christian Dietrich
2010-08-04 12:41 ` [PATCH 4/9] Removing dead CONFIG_RPX(LITE|CLASSIC) Christian Dietrich
2010-08-04 12:41   ` Christian Dietrich
2010-08-04 12:41 ` Christian Dietrich
2010-08-04 12:41 ` [PATCH 5/9] arch/m68knommu: Removing dead M68000 config option Christian Dietrich
2010-08-04 12:42 ` [PATCH 6/9] arch/m68knommu: Removing dead RELOCATE " Christian Dietrich
2010-08-04 12:42 ` [PATCH 7/9] arch/m68knommu: Removing dead M68KFPU_EMU " Christian Dietrich
2010-08-04 12:42 ` [PATCH 8/9] arch/m68knommu: Removing dead RAM_{16,32}_MB " Christian Dietrich
2010-08-04 12:42 ` [PATCH 9/9] arch/m68knommu: Removing dead 68328_SERIAL_UART2 " Christian Dietrich
2010-08-09  5:50 ` [PATCH 0/9] Removing dead code Greg Ungerer
2010-08-09  9:03   ` Christian Dietrich
2010-08-23 10:07     ` Christian Dietrich
2010-08-23 14:46       ` Geert Uytterhoeven
2010-08-23 14:46         ` Geert Uytterhoeven
2010-08-27  6:14         ` Greg Ungerer
2010-08-27  6:14           ` Greg Ungerer
2010-08-27  7:14           ` Geert Uytterhoeven
2010-08-27  7:14             ` Geert Uytterhoeven

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.