Skip to contentSkip to conversation

m68k: Remove references to obsolete CONFIG_SERIAL167

PATCH In review Geert Uytterhoeven 2 participants 7 messages Nov 13, 2011 – Nov 17, 2011 m68k architecture

lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

PATCH 1/1 m68k: Remove references to obsolete CONFIG_SERIAL167

commit 51c9d654c2def97827395a7fbfd0c6f865c26544 ("Staging: delete tty drivers") removed the MVME167 serial driver, but forgot to remove these references.

---
 arch/m68k/Kconfig.devices           |    2 +-
 arch/m68k/configs/multi_defconfig   |    1 -
 arch/m68k/configs/mvme16x_defconfig |    1 -
 3 files changed, 1 insertions(+), 3 deletions(-)
arch/m68k/Kconfig.devices +1 -1
index 6033f5d..e01eeb2 100644
@@ -128,7 +128,7 @@ config DN_SERIAL
 
 config SERIAL_CONSOLE
 	bool "Support for serial port console"
-	depends on (AMIGA || ATARI || SUN3 || SUN3X || VME || APOLLO) && (ATARI_MFPSER=y || ATARI_MIDI=y || AMIGA_BUILTIN_SERIAL=y || MULTIFACE_III_TTY=y || SERIAL=y || SERIAL167 || DN_SERIAL)
+	depends on (AMIGA || ATARI || SUN3 || SUN3X || VME || APOLLO) && (ATARI_MFPSER=y || ATARI_MIDI=y || AMIGA_BUILTIN_SERIAL=y || MULTIFACE_III_TTY=y || SERIAL=y || DN_SERIAL)
 	---help---
 	  If you say Y here, it will be possible to use a serial port as the
 	  system console (the system console is the device which receives all
arch/m68k/configs/multi_defconfig +0 -1
index 88fb437..116e2ec 100644
@@ -330,7 +330,6 @@ CONFIG_ATARI_MIDI=y
 CONFIG_ATARI_DSP56K=m
 CONFIG_AMIGA_BUILTIN_SERIAL=y
 CONFIG_MULTIFACE_III_TTY=m
-CONFIG_SERIAL167=y
 CONFIG_DN_SERIAL=y
 CONFIG_SERIAL_CONSOLE=y
 CONFIG_EXT2_FS=y
arch/m68k/configs/mvme16x_defconfig +0 -1
index c45aaf3..6dd12e6 100644
@@ -218,7 +218,6 @@ CONFIG_GEN_RTC_X=y
 CONFIG_HID=m
 CONFIG_HIDRAW=y
 # CONFIG_USB_SUPPORT is not set
-CONFIG_SERIAL167=y
 CONFIG_SERIAL_CONSOLE=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 16 lines · Geert Uytterhoeven

commit 51c9d654c2def97827395a7fbfd0c6f865c26544 ("Staging: delete tty drivers") removed the MVME167 serial driver, but forgot to remove these references.

---
 arch/m68k/Kconfig.devices           |    2 +-
 arch/m68k/configs/multi_defconfig   |    1 -
 arch/m68k/configs/mvme16x_defconfig |    1 -
 3 files changed, 1 insertions(+), 3 deletions(-)
arch/m68k/Kconfig.devices +0 -0
index 6033f5d..e01eeb2 100644

arch/m68k/Kconfig.devices config DN_SERIAL · line 131

Quoted 5 lines
arch/m68k/Kconfig.devices +1 -1
@@ -128,7 +128,7 @@ config DN_SERIAL
 
 config SERIAL_CONSOLE
 	bool "Support for serial port console"
-	depends on (AMIGA || ATARI || SUN3 || SUN3X || VME || APOLLO) && (ATARI_MFPSER=y || ATARI_MIDI=y || AMIGA_BUILTIN_SERIAL=y || MULTIFACE_III_TTY=y || SERIAL=y || SERIAL167 || DN_SERIAL)
+	depends on (AMIGA || ATARI || SUN3 || SUN3X || VME || APOLLO) && (ATARI_MFPSER=y || ATARI_MIDI=y || AMIGA_BUILTIN_SERIAL=y || MULTIFACE_III_TTY=y || SERIAL=y || DN_SERIAL)

0) The SERIAL=y part can also be dropped. There's no Kconfig symbol SERIAL.

1) I've been looking at this impressive dependency list a few days back. My impression was that it can be reduced to only AMIGA_BUILTIN_SERIAL=y. (After that this Kconfig symbol might better be renamed to AMIGA_BUILTIN_SERIAL_CONSOLE.)

I might have a draft patch to drop the dependencies somewhere. I need to have another look at that (draft) patch before I can submit it.

arch/m68k/Kconfig.devices config DN_SERIAL · line 134

Quoted 3 lines
arch/m68k/Kconfig.devices +0 -0
 	---help---
 	  If you say Y here, it will be possible to use a serial port as the
 	  system console (the system console is the device which receives all

Paul Bolle

author maintainer
#2 lore raw
Quoted 18 lines · Paul Bolle
Quoted 17 lines · Geert Uytterhoeven

commit 51c9d654c2def97827395a7fbfd0c6f865c26544 ("Staging: delete tty drivers") removed the MVME167 serial driver, but forgot to remove these references.

---
 arch/m68k/Kconfig.devices           |    2 +-
 arch/m68k/configs/multi_defconfig   |    1 -
 arch/m68k/configs/mvme16x_defconfig |    1 -

 3 files changed, 1 insertions(+), 3 deletions(-)
arch/m68k/Kconfig.devices +0 -0
index 6033f5d..e01eeb2 100644
@@ -128,7 +128,7 @@ config DN_SERIAL
 
Quoted 7 lines
Quoted 4 lines

 config SERIAL_CONSOLE
      bool "Support for serial port console"

-     depends on (AMIGA || ATARI || SUN3 || SUN3X || VME || APOLLO) && (ATARI_MFPSER=y || ATARI_MIDI=y || AMIGA_BUILTIN_SERIAL=y || MULTIFACE_III_TTY=y || SERIAL=y || SERIAL167 || DN_SERIAL)
+     depends on (AMIGA || ATARI || SUN3 || SUN3X || VME || APOLLO) && (ATARI_MFPSER=y || ATARI_MIDI=y || AMIGA_BUILTIN_SERIAL=y || MULTIFACE_III_TTY=y || SERIAL=y || DN_SERIAL)

0) The SERIAL=y part can also be dropped. There's no Kconfig symbol SERIAL.

OK, will do.

Quoted 7 lines

1) I've been looking at this impressive dependency list a few days back. My impression was that it can be reduced to only AMIGA_BUILTIN_SERIAL=y. (After that this Kconfig symbol might better be renamed to AMIGA_BUILTIN_SERIAL_CONSOLE.)

I might have a draft patch to drop the dependencies somewhere. I need to have another look at that (draft) patch before I can submit it.

You are right: all drivers (except for AMIGA_BUILTIN_SERIAL) got lost due to bitrot, or never made it to mainline. Will fix.

But please keep SERIAL_CONSOLE.

BTW, updating the m68k defconfigs is also on my list.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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

#3 lore raw
Quoted 11 lines · Geert Uytterhoeven
Quoted 7 lines · Paul Bolle

1) I've been looking at this impressive dependency list a few days back. My impression was that it can be reduced to only AMIGA_BUILTIN_SERIAL=y. (After that this Kconfig symbol might better be renamed to AMIGA_BUILTIN_SERIAL_CONSOLE.)

I might have a draft patch to drop the dependencies somewhere. I need to have another look at that (draft) patch before I can submit it.

You are right: all drivers (except for AMIGA_BUILTIN_SERIAL) got lost due to bitrot, or never made it to mainline. Will fix.

Nice.

Quoted 1 line

But please keep SERIAL_CONSOLE.

Why do you care about SERIAL_CONSOLE? If it's only really used by AMIGA_BUILTIN_SERIAL why shouldn't we rename it to AMIGA_BUILTIN_SERIAL_CONSOLE?

Quoted 1 line

BTW, updating the m68k defconfigs is also on my list.

Nice too. Jiri Kosina already claimed to be able to handle any problems caused by my cleaning efforts (which I haven't made public, since I'm still pondering on a way to publish a 400K+ patch).

Paul Bolle

author maintainer
#4 lore raw
Quoted 5 lines · Paul Bolle
Quoted 1 line

But please keep SERIAL_CONSOLE.

Why do you care about SERIAL_CONSOLE? If it's only really used by AMIGA_BUILTIN_SERIAL why shouldn't we rename it to AMIGA_BUILTIN_SERIAL_CONSOLE?

Because SERIAL_CONSOLE is a universal platform-independent symbol. Other arches have it as well (but less than in the past).

As soon as m68k gets a new serial driver, it will be used by 2 drivers again.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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

#5 lore raw
Quoted 8 lines · Geert Uytterhoeven
Quoted 3 lines

Why do you care about SERIAL_CONSOLE? If it's only really used by AMIGA_BUILTIN_SERIAL why shouldn't we rename it to AMIGA_BUILTIN_SERIAL_CONSOLE?

Because SERIAL_CONSOLE is a universal platform-independent symbol. Other arches have it as well (but less than in the past).

As soon as m68k gets a new serial driver, it will be used by 2 drivers again.

If one does

    $ git grep -n  "\<\(CONFIG_\)\?SERIAL_CONSOLE\>" | grep -v defconfig

one gets a few hits (summarized):
- arch/m68k/Kconfig.devices: discussed here;
- arch/sparc/Kconfig: apparently unused, and can be dropped;
- arch/xtensa/Kconfig and arch/xtensa/platforms/iss/console.c: the only other current usage (note that the "S6105" platform, mentioned in the Kconfig file, seems not to use it);
- drivers/staging/serial/68360serial.c: uses CONFIG_SERIAL_CONSOLE, but I don't see how it can actually be set for that driver;
- drivers/tty/amiserial.c: discussed here.

I see nothing universal about it: two independent usages, one in */iss/console.c and one in */amiserial.c. So I'd say these can be renamed to (say) ISS_SERIAL_CONSOLE and AMIGA_BUILTIN_SERIAL_CONSOLE.

Paul Bolle

#6 lore raw
Quoted 3 lines · Paul Bolle

I see nothing universal about it: two independent usages, one in */iss/console.c and one in */amiserial.c. So I'd say these can be renamed to (say) ISS_SERIAL_CONSOLE and AMIGA_BUILTIN_SERIAL_CONSOLE.

And, looking at it again, in */iss/console.c it can just as well be dropped, as SERIAL_CONSOLE will always be set for that platform. So the only actual usage I see is in */amiserial.c.

Paul Bolle