]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: dma: Allow driver operations before starting DMA transfers
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 22 Apr 2022 18:06:11 +0000 (20:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:03 +0000 (14:24 +0200)
commitfd42e18d527f682a12911960275435bb41357a0f
tree05b36c812cbafa6f457e4781dfc627ba6f202c8e
parentf710dc669aee9b29175dd435830eed2d5ab5454a
serial: 8250: dma: Allow driver operations before starting DMA transfers

[ Upstream commit 0bc40a139cacc9852415e97aab439bdc30449326 ]

One situation where this could be used is when configuring the UART
controller to be the DMA flow controller. This is a typical case where
the driver might need to program a few more registers before starting a
DMA transfer. Provide the necessary infrastructure to support this
case.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220422180615.9098-6-miquel.raynal@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/8250/8250.h
drivers/tty/serial/8250/8250_dma.c