Skip to content

serial: Separate RT288x/Au1xxx code into own file

Ilpo Järvinen linux-mips linux-serial lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v36 patches 2 repliesSuperseded
  3. v23 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Type changes
- bugs: unsigned short -> u16
- use u32 for old_dl too

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6serial: 8250: Change dl_read/write to handle value as u32drivers/tty/serial/8250/8250.h drivers/tty/serial/8250/8250_em.c drivers/tty/serial/8250/8250_port.c +3 more+14 -140 replies
2/6serial: 8250: Document uart_8250_port's ->dl_read/write()include/linux/serial_8250.h+10 -10 replies
3/6serial: 8250: Add dl_read/write, bugs and mapsize into plat_serial8250_portdrivers/tty/serial/8250/8250_core.c include/linux/serial_8250.h+24 -10 replies
4/6serial: 8250: RT288x/Au1xxx code away from corearch/mips/alchemy/common/platform.c drivers/tty/serial/8250/8250_early.c drivers/tty/serial/8250/8250_of.c +5 more+161 -1050 replies
5/6serial: 8250_rt288x: Name non-standard divisor latch regdrivers/tty/serial/8250/8250_rt288x.c+4 -20 replies
6/6serial: 8250_rt288x: Remove unnecessary UART_REG_UNMAPPEDdrivers/tty/serial/8250/8250_rt288x.c+4 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/6] serial: Separate RT288x/Au1xxx code into own file

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).

v4:
- Type changes
- bugs: unsigned short -> u16
- use u32 for old_dl too

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             |  44 ++++++--
 13 files changed, 201 insertions(+), 119 deletions(-)
 create mode 100644 drivers/tty/serial/8250/8250_rt288x.c
Signature · 1 line
2.30.2