Skip to content

serial8250: DLL/DLM rework, Emma Mobile UART driver

Magnus Damm linux-serial linux-sh lkml 1 version In review

Get series with b4
b4 am 20120502124642.30480.41373.sendpatchset@w520

Versions newest first

  1. v1 Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6serial8250: Add dl_read()/dl_write() callbacksdrivers/tty/serial/8250/8250.c drivers/tty/serial/8250/8250.h+78 -530 replies
2/6serial8250: Use dl_read()/dl_write() on Alchemydrivers/tty/serial/8250/8250.c+26 -410 replies
3/6serial8250: Use dl_read()/dl_write() on RM9Kdrivers/tty/serial/8250/8250.c+29 -330 replies
4/6serial8250: Clean up default map and dl codedrivers/tty/serial/8250/8250.c+12 -260 replies
5/6serial8250: Introduce serial8250_register_8250_port()drivers/tty/serial/8250/8250.c include/linux/serial_8250.h+59 -310 replies
6/6serial8250-em: Add Emma Mobile UART driverdrivers/tty/serial/8250/8250_em.c drivers/tty/serial/8250/Kconfig drivers/tty/serial/8250/Makefile+188 -04 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlan CoxArnd Bergmann
SeriesA-b A-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/06] serial8250: DLL/DLM rework, Emma Mobile UART driver

serial8250: DLL/DLM rework, Emma Mobile UART driver

[PATCH 01/06] serial8250: Add dl_read()/dl_write() callbacks [PATCH 02/06] serial8250: Use dl_read()/dl_write() on Alchemy [PATCH 03/06] serial8250: Use dl_read()/dl_write() on RM9K [PATCH 04/06] serial8250: Clean up default map and dl code [PATCH 05/06] serial8250: Introduce serial8250_register_8250_port() [PATCH 06/06] serial8250-em: Add Emma Mobile UART driver

This series cleans up and adjusts the 8250 code base to allow hooking in a driver for the UART in Emma Mobile SoCs.

In short:
- Patch 1-4 tie in 8250-specific dl_read()/dl_write() callbacks.
- Patch 5 adds a new register function to use new callbacks.
- Patch 6 adds a new driver that makes use of the above.

I'd be happy to rework the above patches if needed. The main challenge for Emma Mobile UART support is the non- standard offsets for DLL and DLM registers.

Note that there is no DT support included at this point, but it boils down to a 10 line change. The boot loader on my board does not do DT so I'd like to use kexec for DT development (as usual), but to use kexec I first need to get a non-DT kernel working. Which is basically this. =)

---

Builds on top of linux-next 20120501.

 drivers/tty/serial/8250/8250.c    |  373 ++++++++++++++++++-------------------
 drivers/tty/serial/8250/8250.h    |   14 +
 drivers/tty/serial/8250/8250_em.c |  179 +++++++++++++++++
 drivers/tty/serial/8250/Kconfig   |    8 
 drivers/tty/serial/8250/Makefile  |    1 
 include/linux/serial_8250.h       |    1 
 6 files changed, 392 insertions(+), 184 deletions(-)