tty: serial: 8250: allow to use custom DMA implementation
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 17 Sep 2014 10:11:41 +0000 (12:11 +0200)
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 29 Sep 2014 17:54:44 +0000 (19:54 +0200)
commit7961529613b0d94de11a225a1e4bff3cc7c219e8
tree0a62ca5022c55e8fa027478e903dde7e5b233b7b
parent9e25a5cb164ceb699725da7d1235c4d4ae186314
tty: serial: 8250: allow to use custom DMA implementation

The OMAP has a few corner cases where it needs a share of kindness of
affection to do the right thing. Heikki Krogerus suggested that instead
adding the quirks into the default DMA implementation, OMAP could get
its own copy of the function. And Alan suggested the same thing so here
we go.

This patch provides callbacks for custom TX/RX DMA implementation. If
there are not setup / used, then the default (current) implementation is
used.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
drivers/tty/serial/8250/8250.h
drivers/tty/serial/8250/8250_core.c
drivers/tty/serial/8250/8250_dma.c