mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/6] serial: Separate RT288x/Au1xxx code into own file
@ 2023-05-09 11:39 Ilpo Järvinen
  2023-05-09 11:39 ` [PATCH v3 1/6] serial: 8250: Change dl_read/write to handle value as u32 Ilpo Järvinen
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Ilpo Järvinen @ 2023-05-09 11:39 UTC (permalink / raw)
  To: linux-serial, Greg Kroah-Hartman, Jiri Slaby,
	Philippe Mathieu-Daudé
  Cc: linux-kernel, Niklas Schnelle, Ilpo Järvinen

A non-trivial amount of RT288x/Au1xxx code is encapsulated into
ifdeffery in 8250_port / 8250_early and some if/switch UPIO_AU blocks.
Create a separate file from them and do a few additional cleanups.

I kept the Kconfig entry as bool because the code has somewhat tricky
dependency chain (mips arch code and 8250_of driver).

v3:
- Convert dl_read/write() to take u32 arg + name the args
- Separatate the non-driver datastructure changes & document them better
- Fix build when SERIAL_8250=m + SERIAL_8250_RT288X=y (+note reasoning
  in the commit message for future reference)
- Use u8 for arrays that no longer have < 0 values

v2:
- Define register map array lengths explicitly to avoid creating
  declaration trap.

Ilpo Järvinen (6):
  serial: 8250: Change dl_read/write to handle value as u32
  serial: 8250: Document uart_8250_port's ->dl_read/write()
  serial: 8250: Add dl_read/write, bugs and mapsize into plat_serial8250_port
  serial: 8250: RT288x/Au1xxx code away from core
  serial: 8250_rt288x: Name non-standard divisor latch reg
  serial: 8250_rt288x: Remove unnecessary UART_REG_UNMAPPED

 arch/mips/alchemy/common/platform.c     |  10 +-
 drivers/tty/serial/8250/8250.h          |   4 +-
 drivers/tty/serial/8250/8250_core.c     |   4 +
 drivers/tty/serial/8250/8250_early.c    |  21 ----
 drivers/tty/serial/8250/8250_em.c       |   4 +-
 drivers/tty/serial/8250/8250_of.c       |   4 +-
 drivers/tty/serial/8250/8250_port.c     |  84 +--------------
 drivers/tty/serial/8250/8250_pxa.c      |   2 +-
 drivers/tty/serial/8250/8250_rt288x.c   | 136 ++++++++++++++++++++++++
 drivers/tty/serial/8250/8250_uniphier.c |   4 +-
 drivers/tty/serial/8250/Makefile        |   1 +
 drivers/tty/serial/Makefile             |   2 +-
 include/linux/serial_8250.h             |  42 +++++++-
 13 files changed, 200 insertions(+), 118 deletions(-)
 create mode 100644 drivers/tty/serial/8250/8250_rt288x.c

-- 
2.30.2


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

end of thread, other threads:[~2023-05-10  5:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09 11:39 [PATCH v3 0/6] serial: Separate RT288x/Au1xxx code into own file Ilpo Järvinen
2023-05-09 11:39 ` [PATCH v3 1/6] serial: 8250: Change dl_read/write to handle value as u32 Ilpo Järvinen
2023-05-10  5:47   ` Jiri Slaby
2023-05-09 11:39 ` [PATCH v3 2/6] serial: 8250: Document uart_8250_port's ->dl_read/write() Ilpo Järvinen
2023-05-09 11:39 ` [PATCH v3 3/6] serial: 8250: Add dl_read/write, bugs and mapsize into plat_serial8250_port Ilpo Järvinen
2023-05-10  5:55   ` Jiri Slaby
2023-05-09 11:39 ` [PATCH v3 4/6] serial: 8250: RT288x/Au1xxx code away from core Ilpo Järvinen
2023-05-09 11:39 ` [PATCH v3 5/6] serial: 8250_rt288x: Name non-standard divisor latch reg Ilpo Järvinen
2023-05-09 11:39 ` [PATCH v3 6/6] serial: 8250_rt288x: Remove unnecessary UART_REG_UNMAPPED Ilpo Järvinen

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

all inboxes | Powered by JetHome®