Skip to contentSkip to conversation

serial: relocate remaining serial drivers from tty/ to tty/serial/

PATCH NAK Paul Gortmaker 8 participants 16 messages Jan 4, 2012 – Feb 8, 2012

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: relocate remaining serial drivers from tty/ to tty/serial/

The commit ab4382d27412e7e3e7c936e8d50d8888dfac3df8,

"tty: move drivers/serial/ to drivers/tty/serial/"

put most of the serial drivers together in one place, but the ones that were hiding in drivers/char didn't get picked up in that change.

They did get moved in commit a6afd9f3e819de4795fcd356e5bfad446e4323f2

"tty: move a number of tty drivers from drivers/char/ to drivers/tty/"

but there was no distinction of serial vs. non-serial in the above.

Here we take the remaining serial drivers (mostly legacy multiport drivers) and put them alongside all the others in tty/serial/ dir.

We can drop SERIAL_NONSTANDARD's dependency on HAS_IOMEM, since the encompassing menu block already has that dependency called out.

---
 drivers/tty/Kconfig                    |  129 --------------------------------
 drivers/tty/Makefile                   |    9 --
 drivers/tty/serial/Kconfig             |  128 +++++++++++++++++++++++++++++++
 drivers/tty/serial/Makefile            |   11 +++
 drivers/tty/{ => serial}/amiserial.c   |    0
 drivers/tty/{ => serial}/cyclades.c    |    0
 drivers/tty/{ => serial}/isicom.c      |    0
 drivers/tty/{ => serial}/moxa.c        |    0
 drivers/tty/{ => serial}/moxa.h        |    0
 drivers/tty/{ => serial}/mxser.c       |    0
 drivers/tty/{ => serial}/mxser.h       |    0
 drivers/tty/{ => serial}/rocket.c      |    0
 drivers/tty/{ => serial}/rocket.h      |    0
 drivers/tty/{ => serial}/rocket_int.h  |    0
 drivers/tty/{ => serial}/synclink.c    |    0
 drivers/tty/{ => serial}/synclink_gt.c |    0
 drivers/tty/{ => serial}/synclinkmp.c  |    0
 17 files changed, 139 insertions(+), 138 deletions(-)
 rename drivers/tty/{ => serial}/amiserial.c (100%)
 rename drivers/tty/{ => serial}/cyclades.c (100%)
 rename drivers/tty/{ => serial}/isicom.c (100%)
 rename drivers/tty/{ => serial}/moxa.c (100%)
 rename drivers/tty/{ => serial}/moxa.h (100%)
 rename drivers/tty/{ => serial}/mxser.c (100%)
 rename drivers/tty/{ => serial}/mxser.h (100%)
 rename drivers/tty/{ => serial}/rocket.c (100%)
 rename drivers/tty/{ => serial}/rocket.h (100%)
 rename drivers/tty/{ => serial}/rocket_int.h (100%)
 rename drivers/tty/{ => serial}/synclink.c (100%)
 rename drivers/tty/{ => serial}/synclink_gt.c (100%)
 rename drivers/tty/{ => serial}/synclinkmp.c (100%)
drivers/tty/Kconfig +0 -129
index b3d1741..fe9bf59 100644
@@ -164,125 +164,6 @@ config BFIN_JTAG_COMM_CONSOLE
 	bool "Console on Blackfin JTAG"
 	depends on BFIN_JTAG_COMM=y
 
-config SERIAL_NONSTANDARD
-	bool "Non-standard serial port support"
-	depends on HAS_IOMEM
-	---help---
-	  Say Y here if you have any non-standard serial boards -- boards
-	  which aren't supported using the standard "dumb" serial driver.
-	  This includes intelligent serial boards such as Cyclades,
-	  Digiboards, etc. These are usually used for systems that need many
-	  serial ports because they serve many terminals or dial-in
-	  connections.
-
-	  Note that the answer to this question won't directly affect the
-	  kernel: saying N will just cause the configurator to skip all
-	  the questions about non-standard serial boards.
-
-	  Most people can say N here.
-
-config ROCKETPORT
-	tristate "Comtrol RocketPort support"
-	depends on SERIAL_NONSTANDARD && (ISA || EISA || PCI)
-	help
-	  This driver supports Comtrol RocketPort and RocketModem PCI boards.   
-          These boards provide 2, 4, 8, 16, or 32 high-speed serial ports or
-          modems.  For information about the RocketPort/RocketModem  boards
-          and this driver read <file:Documentation/serial/rocket.txt>.
-
-	  To compile this driver as a module, choose M here: the
-	  module will be called rocket.
-
-	  If you want to compile this driver into the kernel, say Y here.  If
-          you don't have a Comtrol RocketPort/RocketModem card installed, say N.
-
-config CYCLADES
-	tristate "Cyclades async mux support"
-	depends on SERIAL_NONSTANDARD && (PCI || ISA)
-	select FW_LOADER
-	---help---
-	  This driver supports Cyclades Z and Y multiserial boards.
-	  You would need something like this to connect more than two modems to
-	  your Linux box, for instance in order to become a dial-in server.
-
-	  For information about the Cyclades-Z card, read
-	  <file:Documentation/serial/README.cycladesZ>.
-
-	  To compile this driver as a module, choose M here: the
-	  module will be called cyclades.
-
-	  If you haven't heard about it, it's safe to say N.
-
-config CYZ_INTR
-	bool "Cyclades-Z interrupt mode operation (EXPERIMENTAL)"
-	depends on EXPERIMENTAL && CYCLADES
-	help
-	  The Cyclades-Z family of multiport cards allows 2 (two) driver op
-	  modes: polling and interrupt. In polling mode, the driver will check
-	  the status of the Cyclades-Z ports every certain amount of time
-	  (which is called polling cycle and is configurable). In interrupt
-	  mode, it will use an interrupt line (IRQ) in order to check the
-	  status of the Cyclades-Z ports. The default op mode is polling. If
-	  unsure, say N.
-
-config MOXA_INTELLIO
-	tristate "Moxa Intellio support"
-	depends on SERIAL_NONSTANDARD && (ISA || EISA || PCI)
-	select FW_LOADER
-	help
-	  Say Y here if you have a Moxa Intellio multiport serial card.
-
-	  To compile this driver as a module, choose M here: the
-	  module will be called moxa.
-
-config MOXA_SMARTIO
-	tristate "Moxa SmartIO support v. 2.0"
-	depends on SERIAL_NONSTANDARD && (PCI || EISA || ISA)
-	help
-	  Say Y here if you have a Moxa SmartIO multiport serial card and/or
-	  want to help develop a new version of this driver.
-
-	  This is upgraded (1.9.1) driver from original Moxa drivers with
-	  changes finally resulting in PCI probing.
-
-	  This driver can also be built as a module. The module will be called
-	  mxser. If you want to do that, say M here.
-
-config SYNCLINK
-	tristate "Microgate SyncLink card support"
-	depends on SERIAL_NONSTANDARD && PCI && ISA_DMA_API
-	help
-	  Provides support for the SyncLink ISA and PCI multiprotocol serial
-	  adapters. These adapters support asynchronous and HDLC bit
-	  synchronous communication up to 10Mbps (PCI adapter).
-
-	  This driver can only be built as a module ( = code which can be
-	  inserted in and removed from the running kernel whenever you want).
-	  The module will be called synclink.  If you want to do that, say M
-	  here.
-
-config SYNCLINKMP
-	tristate "SyncLink Multiport support"
-	depends on SERIAL_NONSTANDARD && PCI
-	help
-	  Enable support for the SyncLink Multiport (2 or 4 ports)
-	  serial adapter, running asynchronous and HDLC communications up
-	  to 2.048Mbps. Each ports is independently selectable for
-	  RS-232, V.35, RS-449, RS-530, and X.21
-
-	  This driver may be built as a module ( = code which can be
-	  inserted in and removed from the running kernel whenever you want).
-	  The module will be called synclinkmp.  If you want to do that, say M
-	  here.
-
-config SYNCLINK_GT
-	tristate "SyncLink GT/AC support"
-	depends on SERIAL_NONSTANDARD && PCI
-	help
-	  Support for SyncLink GT and SyncLink AC families of
-	  synchronous and asynchronous serial adapters
-	  manufactured by Microgate Systems, Ltd. (www.microgate.com)
-
 config NOZOMI
 	tristate "HSDPA Broadband Wireless Data Card - Globe Trotter"
 	depends on PCI && EXPERIMENTAL
@@ -293,16 +174,6 @@ config NOZOMI
 	  To compile this driver as a module, choose M here, the module
 	  will be called nozomi.
 
-config ISI
-	tristate "Multi-Tech multiport card support (EXPERIMENTAL)"
-	depends on SERIAL_NONSTANDARD && PCI
-	select FW_LOADER
-	help
-	  This is a driver for the Multi-Tech cards which provide several
-	  serial ports.  The driver is experimental and can currently only be
-	  built as a module. The module will be called isicom.
-	  If you want to do that, choose M here.
-
 config N_HDLC
 	tristate "HDLC line discipline support"
 	depends on SERIAL_NONSTANDARD
drivers/tty/Makefile +0 -9
index 2953059..b5ce64b 100644
@@ -15,17 +15,8 @@ obj-$(CONFIG_HVC_DRIVER)	+= hvc/
 obj-y				+= serial/
 
 # tty drivers
-obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
 obj-$(CONFIG_BFIN_JTAG_COMM)	+= bfin_jtag_comm.o
-obj-$(CONFIG_CYCLADES)		+= cyclades.o
-obj-$(CONFIG_ISI)		+= isicom.o
-obj-$(CONFIG_MOXA_INTELLIO)	+= moxa.o
-obj-$(CONFIG_MOXA_SMARTIO)	+= mxser.o
 obj-$(CONFIG_NOZOMI)		+= nozomi.o
-obj-$(CONFIG_ROCKETPORT)	+= rocket.o
-obj-$(CONFIG_SYNCLINK_GT)	+= synclink_gt.o
-obj-$(CONFIG_SYNCLINKMP)	+= synclinkmp.o
-obj-$(CONFIG_SYNCLINK)		+= synclink.o
 obj-$(CONFIG_PPC_EPAPR_HV_BYTECHAN) += ehv_bytechan.o
 
 obj-y += ipwireless/
drivers/tty/serial/Kconfig +128 -0

132 lines not on this page · raw message

drivers/tty/serial/Makefile +11 -0
index e10cf5b..da4b608 100644
@@ -94,3 +94,14 @@ obj-$(CONFIG_SERIAL_MSM_SMD)	+= msm_smd_tty.o
 obj-$(CONFIG_SERIAL_MXS_AUART) += mxs-auart.o
 obj-$(CONFIG_SERIAL_LANTIQ)	+= lantiq.o
 obj-$(CONFIG_SERIAL_XILINX_PS_UART) += xilinx_uartps.o
+obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
+
+# Stuff depending on SERIAL_NONSTANDARD; mostly legacy multiport cards.
+obj-$(CONFIG_CYCLADES)			+= cyclades.o
+obj-$(CONFIG_ISI)			+= isicom.o
+obj-$(CONFIG_MOXA_INTELLIO)		+= moxa.o
+obj-$(CONFIG_MOXA_SMARTIO)		+= mxser.o
+obj-$(CONFIG_ROCKETPORT)		+= rocket.o
+obj-$(CONFIG_SYNCLINK_GT)		+= synclink_gt.o
+obj-$(CONFIG_SYNCLINKMP)		+= synclinkmp.o
+obj-$(CONFIG_SYNCLINK)			+= synclink.o
drivers/tty/serial/amiserial.c renamed from drivers/tty/amiserial.c +0 -0
similarity index 100%
rename from drivers/tty/amiserial.c
rename to drivers/tty/serial/amiserial.c
drivers/tty/serial/cyclades.c renamed from drivers/tty/cyclades.c +0 -0
similarity index 100%
rename from drivers/tty/cyclades.c
rename to drivers/tty/serial/cyclades.c
drivers/tty/serial/isicom.c renamed from drivers/tty/isicom.c +0 -0
similarity index 100%
rename from drivers/tty/isicom.c
rename to drivers/tty/serial/isicom.c
drivers/tty/serial/moxa.c renamed from drivers/tty/moxa.c +0 -0
similarity index 100%
rename from drivers/tty/moxa.c
rename to drivers/tty/serial/moxa.c
drivers/tty/serial/moxa.h renamed from drivers/tty/moxa.h +0 -0
similarity index 100%
rename from drivers/tty/moxa.h
rename to drivers/tty/serial/moxa.h
drivers/tty/serial/mxser.c renamed from drivers/tty/mxser.c +0 -0
similarity index 100%
rename from drivers/tty/mxser.c
rename to drivers/tty/serial/mxser.c
drivers/tty/serial/mxser.h renamed from drivers/tty/mxser.h +0 -0
similarity index 100%
rename from drivers/tty/mxser.h
rename to drivers/tty/serial/mxser.h
drivers/tty/serial/rocket.c renamed from drivers/tty/rocket.c +0 -0
similarity index 100%
rename from drivers/tty/rocket.c
rename to drivers/tty/serial/rocket.c
drivers/tty/serial/rocket.h renamed from drivers/tty/rocket.h +0 -0
similarity index 100%
rename from drivers/tty/rocket.h
rename to drivers/tty/serial/rocket.h
drivers/tty/serial/rocket_int.h renamed from drivers/tty/rocket_int.h +0 -0
similarity index 100%
rename from drivers/tty/rocket_int.h
rename to drivers/tty/serial/rocket_int.h
drivers/tty/serial/synclink.c renamed from drivers/tty/synclink.c +0 -0
similarity index 100%
rename from drivers/tty/synclink.c
rename to drivers/tty/serial/synclink.c
drivers/tty/serial/synclink_gt.c renamed from drivers/tty/synclink_gt.c +0 -0
similarity index 100%
rename from drivers/tty/synclink_gt.c
rename to drivers/tty/serial/synclink_gt.c
drivers/tty/serial/synclinkmp.c renamed from drivers/tty/synclinkmp.c +0 -0
similarity index 100%
rename from drivers/tty/synclinkmp.c
rename to drivers/tty/serial/synclinkmp.c
Signature · 1 line
1.7.7
#1 lore raw
Quoted 5 lines · Paul Gortmaker
 rename drivers/tty/{ => serial}/amiserial.c (100%)
 rename drivers/tty/{ => serial}/cyclades.c (100%)
 rename drivers/tty/{ => serial}/isicom.c (100%)
 rename drivers/tty/{ => serial}/moxa.c (100%)
 rename drivers/tty/{ => serial}/moxa.h (100%)
Quoted 8 lines
 rename drivers/tty/{ => serial}/mxser.c (100%)
 rename drivers/tty/{ => serial}/mxser.h (100%)
 rename drivers/tty/{ => serial}/rocket.c (100%)
 rename drivers/tty/{ => serial}/rocket.h (100%)
 rename drivers/tty/{ => serial}/rocket_int.h (100%)
 rename drivers/tty/{ => serial}/synclink.c (100%)
 rename drivers/tty/{ => serial}/synclink_gt.c (100%)
 rename drivers/tty/{ => serial}/synclinkmp.c (100%)

Hmm, tty/serial/* used to be for those using serial-core. And tty/ for those who don't. But FWIW I don't mind the change.

Signature · 2 lines
js
suse labs
#2 lore raw
Quoted 15 lines · Jiri Slaby
Quoted 5 lines · Paul Gortmaker
 rename drivers/tty/{ => serial}/amiserial.c (100%)
 rename drivers/tty/{ => serial}/cyclades.c (100%)
 rename drivers/tty/{ => serial}/isicom.c (100%)
 rename drivers/tty/{ => serial}/moxa.c (100%)
 rename drivers/tty/{ => serial}/moxa.h (100%)
Quoted 8 lines
 rename drivers/tty/{ => serial}/mxser.c (100%)
 rename drivers/tty/{ => serial}/mxser.h (100%)
 rename drivers/tty/{ => serial}/rocket.c (100%)
 rename drivers/tty/{ => serial}/rocket.h (100%)
 rename drivers/tty/{ => serial}/rocket_int.h (100%)
 rename drivers/tty/{ => serial}/synclink.c (100%)
 rename drivers/tty/{ => serial}/synclink_gt.c (100%)
 rename drivers/tty/{ => serial}/synclinkmp.c (100%)
Quoted 2 lines

Hmm, tty/serial/* used to be for those using serial-core. And tty/ for those who don't. But FWIW I don't mind the change.

Yes, that is what I used when splitting them up, so this patch doesn't make much sense.

Paul, why do you want these all mixed together?

greg k-h

#3 lore raw
Quoted 16 lines · Greg KH
Quoted 15 lines · Jiri Slaby
Quoted 13 lines · Paul Gortmaker
 rename drivers/tty/{ => serial}/amiserial.c (100%)
 rename drivers/tty/{ => serial}/cyclades.c (100%)
 rename drivers/tty/{ => serial}/isicom.c (100%)
 rename drivers/tty/{ => serial}/moxa.c (100%)
 rename drivers/tty/{ => serial}/moxa.h (100%)
 rename drivers/tty/{ => serial}/mxser.c (100%)
 rename drivers/tty/{ => serial}/mxser.h (100%)
 rename drivers/tty/{ => serial}/rocket.c (100%)
 rename drivers/tty/{ => serial}/rocket.h (100%)
 rename drivers/tty/{ => serial}/rocket_int.h (100%)
 rename drivers/tty/{ => serial}/synclink.c (100%)
 rename drivers/tty/{ => serial}/synclink_gt.c (100%)
 rename drivers/tty/{ => serial}/synclinkmp.c (100%)
Quoted 7 lines
Quoted 2 lines

Hmm, tty/serial/* used to be for those using serial-core. And tty/ for those who don't. But FWIW I don't mind the change.

Yes, that is what I used when splitting them up, so this patch doesn't make much sense.

Paul, why do you want these all mixed together?

My thinking was that having a drivers/tty/serial dir and then not having all the serial drivers in that dir violated the principle of least surprise. Is there a reason why the dir should be the exclusive domain of drivers with a dependency on SERIAL_CORE?

Paul.

Quoted 2 lines

greg k-h

#14 lore raw
In reply to Paul Gortmaker
Quoted 11 lines · On Wed, 4 Jan 2012 15:01:27 -0500 Paul Gortmaker…

The commit ab4382d27412e7e3e7c936e8d50d8888dfac3df8,

"tty: move drivers/serial/ to drivers/tty/serial/"

put most of the serial drivers together in one place, but the ones that were hiding in drivers/char didn't get picked up in that change.

They did get moved in commit a6afd9f3e819de4795fcd356e5bfad446e4323f2

"tty: move a number of tty drivers from drivers/char/ to drivers/tty/"

Quoted 7 lines

but there was no distinction of serial vs. non-serial in the above.

Here we take the remaining serial drivers (mostly legacy multiport drivers) and put them alongside all the others in tty/serial/ dir.

We can drop SERIAL_NONSTANDARD's dependency on HAS_IOMEM, since the encompassing menu block already has that dependency called out.

NAK

The tty/serial directory is the stuff using serial_core. I'm not averse to moving the others down a layer into more appropriate places but its already too crowded and in need of re-ordering (eg tty/serial/8250/... might be an improvement)

#4 lore raw
In reply to Paul Gortmaker
Quoted 23 lines · Paul Gortmaker
Quoted 22 lines · Greg KH
Quoted 15 lines · Jiri Slaby
Quoted 5 lines · Paul Gortmaker
 rename drivers/tty/{ => serial}/amiserial.c (100%)
 rename drivers/tty/{ => serial}/cyclades.c (100%)
 rename drivers/tty/{ => serial}/isicom.c (100%)
 rename drivers/tty/{ => serial}/moxa.c (100%)
 rename drivers/tty/{ => serial}/moxa.h (100%)
Quoted 8 lines
 rename drivers/tty/{ => serial}/mxser.c (100%)
 rename drivers/tty/{ => serial}/mxser.h (100%)
 rename drivers/tty/{ => serial}/rocket.c (100%)
 rename drivers/tty/{ => serial}/rocket.h (100%)
 rename drivers/tty/{ => serial}/rocket_int.h (100%)
 rename drivers/tty/{ => serial}/synclink.c (100%)
 rename drivers/tty/{ => serial}/synclink_gt.c (100%)
 rename drivers/tty/{ => serial}/synclinkmp.c (100%)
Quoted 2 lines

Hmm, tty/serial/* used to be for those using serial-core. And tty/ for those who don't. But FWIW I don't mind the change.

Yes, that is what I used when splitting them up, so this patch doesn't make much sense.

Quoted 6 lines
Quoted 1 line

Paul, why do you want these all mixed together?

My thinking was that having a drivers/tty/serial dir and then not having all the serial drivers in that dir violated the principle of least surprise. Is there a reason why the dir should be the exclusive domain of drivers with a dependency on SERIAL_CORE?

Because that is what the directory is for? :)

We have other "serial" like drivers all over the kernel, this was for the SERIAL_CORE drivers only at the moment.

thanks,

greg k-h

#15 lore raw
In reply to Alan Cox
Quoted 22 lines · Alan Cox
Quoted 11 lines · On Wed, 4 Jan 2012 15:01:27 -0500 Paul Gortmaker…

The commit ab4382d27412e7e3e7c936e8d50d8888dfac3df8,

"tty: move drivers/serial/ to drivers/tty/serial/"

put most of the serial drivers together in one place, but the ones that were hiding in drivers/char didn't get picked up in that change.

They did get moved in commit a6afd9f3e819de4795fcd356e5bfad446e4323f2

"tty: move a number of tty drivers from drivers/char/ to drivers/tty/"

Quoted 7 lines

but there was no distinction of serial vs. non-serial in the above.

Here we take the remaining serial drivers (mostly legacy multiport drivers) and put them alongside all the others in tty/serial/ dir.

We can drop SERIAL_NONSTANDARD's dependency on HAS_IOMEM, since the encompassing menu block already has that dependency called out.

Quoted 6 lines

NAK

The tty/serial directory is the stuff using serial_core. I'm not averse to moving the others down a layer into more appropriate places but its already too crowded and in need of re-ordering (eg tty/serial/8250/... might be an improvement)

OK, I can do 8250. What do you have in mind for the legacy multiport drivers then, leave them as-in in drivers/tty or another subdir just for them?

Thanks,
P.

Quoted 1 line
#5 lore raw
In reply to Greg KH
Quoted 10 lines · Greg KH
Quoted 5 lines

My thinking was that having a drivers/tty/serial dir and then not having all the serial drivers in that dir violated the principle of least surprise. Is there a reason why the dir should be the exclusive domain of drivers with a dependency on SERIAL_CORE?

Because that is what the directory is for? :)

We have other "serial" like drivers all over the kernel, this was for the SERIAL_CORE drivers only at the moment.

My initial plan when moving some files to drivers/tty was to have a separate directory for the non-SERIAL_CORE serial drivers next to drivers/tty/serial.

I would still prefer this solution, but I think we never agreed on a good name for that directory. IIRC, I had suggested drivers/tty/legacy believing that SERIAL_CORE was the modern way to implement a serial driver, but that turned out not to be true and at lease one of these (bfin_jtag) is not a legacy driver in practice.

Maybe drivers/tty/hw? I think that one has been suggested before, too. I don't remember any argument against it and I think it would be nice to separate the core implementation from actual device drivers.

Arnd

#6 lore raw
Quoted 21 lines · Arnd Bergmann
Quoted 10 lines · Greg KH
Quoted 5 lines

My thinking was that having a drivers/tty/serial dir and then not having all the serial drivers in that dir violated the principle of least surprise. Is there a reason why the dir should be the exclusive domain of drivers with a dependency on SERIAL_CORE?

Because that is what the directory is for? :)

We have other "serial" like drivers all over the kernel, this was for the SERIAL_CORE drivers only at the moment.

My initial plan when moving some files to drivers/tty was to have a separate directory for the non-SERIAL_CORE serial drivers next to drivers/tty/serial.

I would still prefer this solution, but I think we never agreed on a good name for that directory. IIRC, I had suggested drivers/tty/legacy believing that SERIAL_CORE was the modern way to implement a serial driver, but that turned out not to be true and at lease one of these (bfin_jtag) is not a legacy driver in practice.

Quoted 3 lines

Maybe drivers/tty/hw? I think that one has been suggested before, too. I don't remember any argument against it and I think it would be nice to separate the core implementation from actual device drivers.

How about:

drivers/tty/serial_core <= drivers based on SERIAL_CORE
drivers/tty/serial <= the rest

This makes it obvious that one directory is for drivers based on SERIAL_CORE - and the other is sort of the "rest".

I know this imply moving files around again :-(

Sam

#7 lore raw
Quoted 7 lines

drivers/tty/serial_core <= drivers based on SERIAL_CORE
drivers/tty/serial <= the rest

This makes it obvious that one directory is for drivers based on SERIAL_CORE - and the other is sort of the "rest".

I know this imply moving files around again :-(

And putting one lot where the other were. Merge time is closed so we've got plenty of time to sort this right. For the moment can we just tidy up 8250, then think about it in more detail rather than play musical chairs ?

Alan

#8 lore raw
Quoted 6 lines · [Re: [PATCH] serial: relocate remaining serial drivers from tty/ to…
Quoted 6 lines

drivers/tty/serial_core <= drivers based on SERIAL_CORE
drivers/tty/serial <= the rest

This makes it obvious that one directory is for drivers based on SERIAL_CORE - and the other is sort of the "rest".

Quoted 6 lines
Quoted 1 line

I know this imply moving files around again :-(

And putting one lot where the other were. Merge time is closed so we've got plenty of time to sort this right. For the moment can we just tidy up 8250, then think about it in more detail rather than play musical chairs ?

Presumably too late for 3.3, but I figured I'd send the 8250 tidy up for review while the discussion was still fresh in everyone's mind.

Note that this patch is based on Greg's tty-next branch in:

git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git

since we need to move the 8250_fsl driver as well, which at the moment only exists there. Tested with serial console on x86-32.

Paul.
---

Quoted 1 line

From 742ad14382126ae26cf7472f5ec5556646d8bb20 Mon Sep 17 00:00:00 2001

From: Paul Gortmaker <[email protected]>
Date: Wed, 4 Jan 2012 20:04:42 -0500
Subject: [PATCH] serial: group all the 8250 related code together

The drivers/tty/serial dir is already getting rather busy. Relocate the 8250 related drivers to their own subdir to reduce the clutter.

Note that sunsu.c is not included in this move -- it is 8250-like hardware, but it does not use any of the existing infrastructure -- and does not depend on SERIAL_8250.

---
 drivers/tty/serial/{ => 8250}/8250.c               |    0
 drivers/tty/serial/{ => 8250}/8250.h               |    0
 drivers/tty/serial/{ => 8250}/8250_accent.c        |    0
 drivers/tty/serial/{ => 8250}/8250_acorn.c         |    0
 drivers/tty/serial/{ => 8250}/8250_boca.c          |    0
 drivers/tty/serial/{ => 8250}/8250_dw.c            |    0
 drivers/tty/serial/{ => 8250}/8250_early.c         |    0
 drivers/tty/serial/{ => 8250}/8250_exar_st16c554.c |    0
 drivers/tty/serial/{ => 8250}/8250_fourport.c      |    0
 drivers/tty/serial/{ => 8250}/8250_fsl.c           |    0
 drivers/tty/serial/{ => 8250}/8250_gsc.c           |    0
 drivers/tty/serial/{ => 8250}/8250_hp300.c         |    0
 drivers/tty/serial/{ => 8250}/8250_hub6.c          |    0
 drivers/tty/serial/{ => 8250}/8250_mca.c           |    0
 drivers/tty/serial/{ => 8250}/8250_pci.c           |    0
 drivers/tty/serial/{ => 8250}/8250_pnp.c           |    0
 drivers/tty/serial/8250/Kconfig                    |  280 ++++++++++++++++++++
 drivers/tty/serial/8250/Makefile                   |   20 ++
 drivers/tty/serial/{ => 8250}/m32r_sio.c           |    0
 drivers/tty/serial/{ => 8250}/m32r_sio.h           |    0
 drivers/tty/serial/{ => 8250}/m32r_sio_reg.h       |    0
 drivers/tty/serial/{ => 8250}/serial_cs.c          |    0
 drivers/tty/serial/Kconfig                         |  274 +-------------------
 drivers/tty/serial/Makefile                        |   19 +--
 24 files changed, 304 insertions(+), 289 deletions(-)
 rename drivers/tty/serial/{ => 8250}/8250.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250.h (100%)
 rename drivers/tty/serial/{ => 8250}/8250_accent.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_acorn.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_boca.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_dw.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_early.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_exar_st16c554.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_fourport.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_fsl.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_gsc.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_hp300.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_hub6.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_mca.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_pci.c (100%)
 rename drivers/tty/serial/{ => 8250}/8250_pnp.c (100%)
 create mode 100644 drivers/tty/serial/8250/Kconfig
 create mode 100644 drivers/tty/serial/8250/Makefile
 rename drivers/tty/serial/{ => 8250}/m32r_sio.c (100%)
 rename drivers/tty/serial/{ => 8250}/m32r_sio.h (100%)
 rename drivers/tty/serial/{ => 8250}/m32r_sio_reg.h (100%)
 rename drivers/tty/serial/{ => 8250}/serial_cs.c (100%)
drivers/tty/serial/8250/8250.c renamed from drivers/tty/serial/8250.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250.c
rename to drivers/tty/serial/8250/8250.c
drivers/tty/serial/8250/8250.h renamed from drivers/tty/serial/8250.h +0 -0
similarity index 100%
rename from drivers/tty/serial/8250.h
rename to drivers/tty/serial/8250/8250.h
drivers/tty/serial/8250/8250_accent.c renamed from drivers/tty/serial/8250_accent.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_accent.c
rename to drivers/tty/serial/8250/8250_accent.c
drivers/tty/serial/8250/8250_acorn.c renamed from drivers/tty/serial/8250_acorn.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_acorn.c
rename to drivers/tty/serial/8250/8250_acorn.c
drivers/tty/serial/8250/8250_boca.c renamed from drivers/tty/serial/8250_boca.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_boca.c
rename to drivers/tty/serial/8250/8250_boca.c
drivers/tty/serial/8250/8250_dw.c renamed from drivers/tty/serial/8250_dw.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_dw.c
rename to drivers/tty/serial/8250/8250_dw.c
drivers/tty/serial/8250/8250_early.c renamed from drivers/tty/serial/8250_early.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_early.c
rename to drivers/tty/serial/8250/8250_early.c
drivers/tty/serial/8250/8250_exar_st16c554.c renamed from drivers/tty/serial/8250_exar_st16c554.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_exar_st16c554.c
rename to drivers/tty/serial/8250/8250_exar_st16c554.c
drivers/tty/serial/8250/8250_fourport.c renamed from drivers/tty/serial/8250_fourport.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_fourport.c
rename to drivers/tty/serial/8250/8250_fourport.c
drivers/tty/serial/8250/8250_fsl.c renamed from drivers/tty/serial/8250_fsl.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_fsl.c
rename to drivers/tty/serial/8250/8250_fsl.c
drivers/tty/serial/8250/8250_gsc.c renamed from drivers/tty/serial/8250_gsc.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_gsc.c
rename to drivers/tty/serial/8250/8250_gsc.c
drivers/tty/serial/8250/8250_hp300.c renamed from drivers/tty/serial/8250_hp300.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_hp300.c
rename to drivers/tty/serial/8250/8250_hp300.c
drivers/tty/serial/8250/8250_hub6.c renamed from drivers/tty/serial/8250_hub6.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_hub6.c
rename to drivers/tty/serial/8250/8250_hub6.c
drivers/tty/serial/8250/8250_mca.c renamed from drivers/tty/serial/8250_mca.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_mca.c
rename to drivers/tty/serial/8250/8250_mca.c
drivers/tty/serial/8250/8250_pci.c renamed from drivers/tty/serial/8250_pci.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_pci.c
rename to drivers/tty/serial/8250/8250_pci.c
drivers/tty/serial/8250/8250_pnp.c renamed from drivers/tty/serial/8250_pnp.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250_pnp.c
rename to drivers/tty/serial/8250/8250_pnp.c
drivers/tty/serial/8250/Kconfig new file +280 -0

280 lines not on this page · raw message

drivers/tty/serial/8250/Makefile new file +20 -0
new file mode 100644
index 0000000..867bba7
@@ -0,0 +1,20 @@
+#
+# Makefile for the 8250 serial device drivers.
+#
+
+obj-$(CONFIG_SERIAL_8250)		+= 8250.o
+obj-$(CONFIG_SERIAL_8250_PNP)		+= 8250_pnp.o
+obj-$(CONFIG_SERIAL_8250_GSC)		+= 8250_gsc.o
+obj-$(CONFIG_SERIAL_8250_PCI)		+= 8250_pci.o
+obj-$(CONFIG_SERIAL_8250_HP300)		+= 8250_hp300.o
+obj-$(CONFIG_SERIAL_8250_CS)		+= serial_cs.o
+obj-$(CONFIG_SERIAL_8250_ACORN)		+= 8250_acorn.o
+obj-$(CONFIG_SERIAL_8250_CONSOLE)	+= 8250_early.o
+obj-$(CONFIG_SERIAL_8250_FOURPORT)	+= 8250_fourport.o
+obj-$(CONFIG_SERIAL_8250_ACCENT)	+= 8250_accent.o
+obj-$(CONFIG_SERIAL_8250_BOCA)		+= 8250_boca.o
+obj-$(CONFIG_SERIAL_8250_EXAR_ST16C554)	+= 8250_exar_st16c554.o
+obj-$(CONFIG_SERIAL_8250_HUB6)		+= 8250_hub6.o
+obj-$(CONFIG_SERIAL_8250_MCA)		+= 8250_mca.o
+obj-$(CONFIG_SERIAL_8250_FSL)		+= 8250_fsl.o
+obj-$(CONFIG_SERIAL_8250_DW)		+= 8250_dw.o
drivers/tty/serial/8250/m32r_sio.c renamed from drivers/tty/serial/m32r_sio.c +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio.c
rename to drivers/tty/serial/8250/m32r_sio.c
drivers/tty/serial/8250/m32r_sio.h renamed from drivers/tty/serial/m32r_sio.h +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio.h
rename to drivers/tty/serial/8250/m32r_sio.h
drivers/tty/serial/8250/m32r_sio_reg.h renamed from drivers/tty/serial/m32r_sio_reg.h +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio_reg.h
rename to drivers/tty/serial/8250/m32r_sio_reg.h
drivers/tty/serial/8250/serial_cs.c renamed from drivers/tty/serial/serial_cs.c +0 -0
similarity index 100%
rename from drivers/tty/serial/serial_cs.c
rename to drivers/tty/serial/8250/serial_cs.c
drivers/tty/serial/Kconfig +1 -273

280 lines not on this page · raw message

drivers/tty/serial/Makefile +3 -16
index 75eadb8..ee3a293 100644
@@ -14,22 +14,9 @@ obj-$(CONFIG_SERIAL_SUNZILOG) += sunzilog.o
 obj-$(CONFIG_SERIAL_SUNSU) += sunsu.o
 obj-$(CONFIG_SERIAL_SUNSAB) += sunsab.o
 
-obj-$(CONFIG_SERIAL_8250) += 8250.o
-obj-$(CONFIG_SERIAL_8250_PNP) += 8250_pnp.o
-obj-$(CONFIG_SERIAL_8250_GSC) += 8250_gsc.o
-obj-$(CONFIG_SERIAL_8250_PCI) += 8250_pci.o
-obj-$(CONFIG_SERIAL_8250_HP300) += 8250_hp300.o
-obj-$(CONFIG_SERIAL_8250_CS) += serial_cs.o
-obj-$(CONFIG_SERIAL_8250_ACORN) += 8250_acorn.o
-obj-$(CONFIG_SERIAL_8250_CONSOLE) += 8250_early.o
-obj-$(CONFIG_SERIAL_8250_FOURPORT) += 8250_fourport.o
-obj-$(CONFIG_SERIAL_8250_ACCENT) += 8250_accent.o
-obj-$(CONFIG_SERIAL_8250_BOCA) += 8250_boca.o
-obj-$(CONFIG_SERIAL_8250_EXAR_ST16C554) += 8250_exar_st16c554.o
-obj-$(CONFIG_SERIAL_8250_HUB6) += 8250_hub6.o
-obj-$(CONFIG_SERIAL_8250_MCA) += 8250_mca.o
-obj-$(CONFIG_SERIAL_8250_FSL) += 8250_fsl.o
-obj-$(CONFIG_SERIAL_8250_DW) += 8250_dw.o
+# Now bring in any enabled 8250/16450/16550 type drivers.
+obj-$(CONFIG_SERIAL_8250) += 8250/
+
 obj-$(CONFIG_SERIAL_AMBA_PL010) += amba-pl010.o
 obj-$(CONFIG_SERIAL_AMBA_PL011) += amba-pl011.o
 obj-$(CONFIG_SERIAL_CLPS711X) += clps711x.o
Signature · 1 line
1.7.7
#9 lore raw
Quoted 10 lines · Paul Gortmaker
Quoted 8 lines · [Re: [PATCH] serial: relocate remaining serial drivers from tty/ to…
Quoted 7 lines

drivers/tty/serial_core <= drivers based on SERIAL_CORE
drivers/tty/serial <= the rest

This makes it obvious that one directory is for drivers based on SERIAL_CORE - and the other is sort of the "rest".

I know this imply moving files around again :-(

Quoted 7 lines
Quoted 4 lines

And putting one lot where the other were. Merge time is closed so we've got plenty of time to sort this right. For the moment can we just tidy up 8250, then think about it in more detail rather than play musical chairs ?

Presumably too late for 3.3, but I figured I'd send the 8250 tidy up for review while the discussion was still fresh in everyone's mind.

That looks good, I'll see if I can get this in after -rc1 is out as moving files then is usually easier.

Unless anyone objects to this patch?

thanks,

greg k-h

#10 lore raw
In reply to Paul Gortmaker
Quoted 23 lines · Paul Gortmaker
drivers/tty/serial/8250/Makefile new file +20 -0
@@ -0,0 +1,20 @@
+#
+# Makefile for the 8250 serial device drivers.
+#
+
+obj-$(CONFIG_SERIAL_8250)		+= 8250.o
+obj-$(CONFIG_SERIAL_8250_PNP)		+= 8250_pnp.o
+obj-$(CONFIG_SERIAL_8250_GSC)		+= 8250_gsc.o
+obj-$(CONFIG_SERIAL_8250_PCI)		+= 8250_pci.o
+obj-$(CONFIG_SERIAL_8250_HP300)		+= 8250_hp300.o
+obj-$(CONFIG_SERIAL_8250_CS)		+= serial_cs.o
+obj-$(CONFIG_SERIAL_8250_ACORN)		+= 8250_acorn.o
+obj-$(CONFIG_SERIAL_8250_CONSOLE)	+= 8250_early.o
+obj-$(CONFIG_SERIAL_8250_FOURPORT)	+= 8250_fourport.o
+obj-$(CONFIG_SERIAL_8250_ACCENT)	+= 8250_accent.o
+obj-$(CONFIG_SERIAL_8250_BOCA)		+= 8250_boca.o
+obj-$(CONFIG_SERIAL_8250_EXAR_ST16C554)	+= 8250_exar_st16c554.o
+obj-$(CONFIG_SERIAL_8250_HUB6)		+= 8250_hub6.o
+obj-$(CONFIG_SERIAL_8250_MCA)		+= 8250_mca.o
+obj-$(CONFIG_SERIAL_8250_FSL)		+= 8250_fsl.o
+obj-$(CONFIG_SERIAL_8250_DW)		+= 8250_dw.o

...

drivers/tty/serial/8250/m32r_sio_reg.h

Quoted 12 lines
drivers/tty/serial/8250/m32r_sio.c renamed from drivers/tty/serial/m32r_sio.c +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio.c
rename to drivers/tty/serial/8250/m32r_sio.c
drivers/tty/serial/8250/m32r_sio.h renamed from drivers/tty/serial/m32r_sio.h +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio.h
rename to drivers/tty/serial/8250/m32r_sio.h
drivers/tty/serial/8250/m32r_sio_reg.h renamed from drivers/tty/serial/m32r_sio_reg.h +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio_reg.h
rename to drivers/tty/serial/8250/m32r_sio_reg.h

Hmm, these cannot be built now :(. Why did you move them?

It looks like they should be moved back.

regards,

Signature · 1 line
js
#11 lore raw

Damnit! They didn't manage to forward Greg's email. What a crap.

Quoted 45 lines · Jiri Slaby
Quoted 23 lines · Paul Gortmaker
drivers/tty/serial/8250/Makefile new file +20 -0
@@ -0,0 +1,20 @@
+#
+# Makefile for the 8250 serial device drivers.
+#
+
+obj-$(CONFIG_SERIAL_8250)		+= 8250.o
+obj-$(CONFIG_SERIAL_8250_PNP)		+= 8250_pnp.o
+obj-$(CONFIG_SERIAL_8250_GSC)		+= 8250_gsc.o
+obj-$(CONFIG_SERIAL_8250_PCI)		+= 8250_pci.o
+obj-$(CONFIG_SERIAL_8250_HP300)		+= 8250_hp300.o
+obj-$(CONFIG_SERIAL_8250_CS)		+= serial_cs.o
+obj-$(CONFIG_SERIAL_8250_ACORN)		+= 8250_acorn.o
+obj-$(CONFIG_SERIAL_8250_CONSOLE)	+= 8250_early.o
+obj-$(CONFIG_SERIAL_8250_FOURPORT)	+= 8250_fourport.o
+obj-$(CONFIG_SERIAL_8250_ACCENT)	+= 8250_accent.o
+obj-$(CONFIG_SERIAL_8250_BOCA)		+= 8250_boca.o
+obj-$(CONFIG_SERIAL_8250_EXAR_ST16C554)	+= 8250_exar_st16c554.o
+obj-$(CONFIG_SERIAL_8250_HUB6)		+= 8250_hub6.o
+obj-$(CONFIG_SERIAL_8250_MCA)		+= 8250_mca.o
+obj-$(CONFIG_SERIAL_8250_FSL)		+= 8250_fsl.o
+obj-$(CONFIG_SERIAL_8250_DW)		+= 8250_dw.o

...

drivers/tty/serial/8250/m32r_sio_reg.h

Quoted 12 lines
drivers/tty/serial/8250/m32r_sio.c renamed from drivers/tty/serial/m32r_sio.c +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio.c
rename to drivers/tty/serial/8250/m32r_sio.c
drivers/tty/serial/8250/m32r_sio.h renamed from drivers/tty/serial/m32r_sio.h +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio.h
rename to drivers/tty/serial/8250/m32r_sio.h
drivers/tty/serial/8250/m32r_sio_reg.h renamed from drivers/tty/serial/m32r_sio_reg.h +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio_reg.h
rename to drivers/tty/serial/8250/m32r_sio_reg.h

Hmm, these cannot be built now :(. Why did you move them?

It looks like they should be moved back.

regards,

Signature · 1 line
js
#12 lore raw
Quoted 44 lines · Jiri Slaby

Damnit! They didn't manage to forward Greg's email. What a crap.

Quoted 41 lines · Jiri Slaby
Quoted 23 lines · Paul Gortmaker
drivers/tty/serial/8250/Makefile new file +20 -0
@@ -0,0 +1,20 @@
+#
+# Makefile for the 8250 serial device drivers.
+#
+
+obj-$(CONFIG_SERIAL_8250)		+= 8250.o
+obj-$(CONFIG_SERIAL_8250_PNP)		+= 8250_pnp.o
+obj-$(CONFIG_SERIAL_8250_GSC)		+= 8250_gsc.o
+obj-$(CONFIG_SERIAL_8250_PCI)		+= 8250_pci.o
+obj-$(CONFIG_SERIAL_8250_HP300)		+= 8250_hp300.o
+obj-$(CONFIG_SERIAL_8250_CS)		+= serial_cs.o
+obj-$(CONFIG_SERIAL_8250_ACORN)		+= 8250_acorn.o
+obj-$(CONFIG_SERIAL_8250_CONSOLE)	+= 8250_early.o
+obj-$(CONFIG_SERIAL_8250_FOURPORT)	+= 8250_fourport.o
+obj-$(CONFIG_SERIAL_8250_ACCENT)	+= 8250_accent.o
+obj-$(CONFIG_SERIAL_8250_BOCA)		+= 8250_boca.o
+obj-$(CONFIG_SERIAL_8250_EXAR_ST16C554)	+= 8250_exar_st16c554.o
+obj-$(CONFIG_SERIAL_8250_HUB6)		+= 8250_hub6.o
+obj-$(CONFIG_SERIAL_8250_MCA)		+= 8250_mca.o
+obj-$(CONFIG_SERIAL_8250_FSL)		+= 8250_fsl.o
+obj-$(CONFIG_SERIAL_8250_DW)		+= 8250_dw.o

...

drivers/tty/serial/8250/m32r_sio_reg.h

Quoted 12 lines
drivers/tty/serial/8250/m32r_sio.c renamed from drivers/tty/serial/m32r_sio.c +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio.c
rename to drivers/tty/serial/8250/m32r_sio.c
drivers/tty/serial/8250/m32r_sio.h renamed from drivers/tty/serial/m32r_sio.h +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio.h
rename to drivers/tty/serial/8250/m32r_sio.h
drivers/tty/serial/8250/m32r_sio_reg.h renamed from drivers/tty/serial/m32r_sio_reg.h +0 -0
similarity index 100%
rename from drivers/tty/serial/m32r_sio_reg.h
rename to drivers/tty/serial/8250/m32r_sio_reg.h

Hmm, these cannot be built now :(. Why did you move them?

As near as I can tell, I think I got misled by the comment in the m32r register file:

* These are the UART port assignments, expressed as offsets from the base
* register. These assignments should hold for any serial port based on
* a 8250, 16450, or 16550(A).

But you are right, they should not have been caught up in the move. I'll send a fix... Sorry about the hassle.

P.

Quoted 4 lines
Quoted 4 lines

It looks like they should be moved back.

regards,

#13 lore raw
In reply to Jiri Slaby
Quoted 4 lines · [Re: [PATCH] serial: relocate remaining serial drivers from tty/ to…

Hmm, these cannot be built now :(. Why did you move them?

It looks like they should be moved back.

Once again, sorry for the brown paper bag moment. :(

Greg, can you ensure this gets applied at your earliest convenience?

Thanks a lot.
Paul.

---

Quoted 1 line

From 309293f382ce9beef6d8a0fd8b3cedc9900f66e1 Mon Sep 17 00:00:00 2001

From: Paul Gortmaker <[email protected]>
Date: Wed, 8 Feb 2012 09:05:42 -0500
Subject: [PATCH] m32r: relocate drivers back out of 8250 dir

Commit 9bef3d4197379a995fa80f81950bbbf8d32e9e8b

"serial: group all the 8250 related code together"

inadvertently swept up the m32r driver in the move, because it had comments mentioning 8250 registers within it. However these are only there by nature of the driver being based off the 8250 source code -- the hardware itself does not actually have any relation to the original 8250 style UARTs.

---
 drivers/tty/serial/{8250 => }/m32r_sio.c     |    0
 drivers/tty/serial/{8250 => }/m32r_sio.h     |    0
 drivers/tty/serial/{8250 => }/m32r_sio_reg.h |    0
 3 files changed, 0 insertions(+), 0 deletions(-)
 rename drivers/tty/serial/{8250 => }/m32r_sio.c (100%)
 rename drivers/tty/serial/{8250 => }/m32r_sio.h (100%)
 rename drivers/tty/serial/{8250 => }/m32r_sio_reg.h (100%)
drivers/tty/serial/m32r_sio.c renamed from drivers/tty/serial/8250/m32r_sio.c +0 -0
similarity index 100%
rename from drivers/tty/serial/8250/m32r_sio.c
rename to drivers/tty/serial/m32r_sio.c
drivers/tty/serial/m32r_sio.h renamed from drivers/tty/serial/8250/m32r_sio.h +0 -0
similarity index 100%
rename from drivers/tty/serial/8250/m32r_sio.h
rename to drivers/tty/serial/m32r_sio.h
drivers/tty/serial/m32r_sio_reg.h renamed from drivers/tty/serial/8250/m32r_sio_reg.h +0 -0
similarity index 100%
rename from drivers/tty/serial/8250/m32r_sio_reg.h
rename to drivers/tty/serial/m32r_sio_reg.h
Signature · 1 line
1.7.9