Skip to content

RFC Starting to pull out the I/O operations

Alan Cox linux-serial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/58250: Make serial_dl_write a port operationdrivers/tty/serial/8250.c include/linux/serial_8250.h include/linux/serial_core.h+74 -520 replies
2/58250: introduce the idea of an operations struct for an 8250 portdrivers/char/mwave/mwavedd.c drivers/tty/serial/8250.c drivers/tty/serial/8250_pci.c +5 more+165 -1120 replies
3/58250: register upio usersdrivers/tty/serial/8250.c include/linux/serial_8250.h+77 -300 replies
4/58250: evict the hub6 I/O operationsdrivers/tty/serial/8250.c drivers/tty/serial/8250.h drivers/tty/serial/8250_hub6.c +1 more+69 -510 replies
5/58250: extract out the "odd" port typesdrivers/tty/serial/8250.c drivers/tty/serial/8250_au.c drivers/tty/serial/8250_dwapb.c +3 more+329 -1950 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/5] Starting to pull out the I/O operations

This is an untested WIP but as it was coming in discussion about device-tree as well I figured it will be useful to post the prototype code at this point.

There is lots left to do - in particular resource claim/release should be an ops method, and it's going to need people to update various embedded 8250 drivers when we finally go for a version of it.

On the bright side once we have an ops structure we have the basis for avoiding further mayhem in the arch code.

---

Alan Cox (5):
8250: extract out the "odd" port types
8250: evict the hub6 I/O operations
8250: register upio users
8250: introduce the idea of an operations struct for an 8250 port 8250: Make serial_dl_write a port operation

 drivers/char/mwave/mwavedd.c    |    2 
 drivers/tty/serial/8250.c       |  450 ++++++++++++++-------------------------
 drivers/tty/serial/8250.h       |   27 ++
 drivers/tty/serial/8250_au.c    |   90 ++++++++
 drivers/tty/serial/8250_dwapb.c |  120 ++++++++++
 drivers/tty/serial/8250_hub6.c  |   39 +++
 drivers/tty/serial/8250_pci.c   |    2 
 drivers/tty/serial/8250_pnp.c   |    2 
 drivers/tty/serial/8250_rm9k.c  |   95 ++++++++
 drivers/tty/serial/Kconfig      |    9 +
 drivers/tty/serial/Makefile     |    3 
 drivers/tty/serial/of_serial.c  |    2 
 drivers/tty/serial/serial_cs.c  |    2 
 include/linux/serial_8250.h     |   36 ++-
 include/linux/serial_core.h     |    5 
 15 files changed, 579 insertions(+), 305 deletions(-)
 create mode 100644 drivers/tty/serial/8250_au.c
 create mode 100644 drivers/tty/serial/8250_dwapb.c
 create mode 100644 drivers/tty/serial/8250_rm9k.c
Signature · 1 line
Words without body bare winter barren trees much unspoken