]> git.baikalelectronics.ru Git - kernel.git/commit
serial: fsl_lpuart: move DMA channel request to probe
authorStefan Agner <stefan@agner.ch>
Sat, 10 Jan 2015 08:33:45 +0000 (09:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:09:55 +0000 (10:09 -0800)
commite553e55cb37b7d5ced9d8a6656594515cc404915
tree347a40237562e477c33b9aa372e26be1486b9c82
parent96d48d7f61c0dfbc369d06658fb3e83ae44d824b
serial: fsl_lpuart: move DMA channel request to probe

Move the DMA channel request to probe to avoid requesting the DMA
channel on each opening of the ttyLPx device. This also fixes a
potential issue that TX channel is not freed when only RX channel
allocation fails. The DMA channels are now handled independently,
so one could use UART with DMA only in TX direction for instance.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c