tty: serial: fsl_lpuart: move dma_request_chan()
authorMichael Walle <michael@walle.cc>
Wed, 25 Mar 2020 09:06:57 +0000 (10:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2020 14:34:05 +0000 (15:34 +0100)
commitd0e7600b914c9fd4935fe6dabf0cd5d71cb94347
tree480b2a47d73395835b6d446ddb3b8d8f3781c120
parenta0c4adeeea84889890bb4c7a28dc58b7c764e4ad
tty: serial: fsl_lpuart: move dma_request_chan()

Move dma_request_chan() out of the atomic context. First this call
should not be in the atomic context at all and second the
dev_info_once() may cause a hang because because the console takes this
spinlock, too.

Fixes: 159381df1442f ("tty: serial: fsl_lpuart: fix DMA operation when using IOMMU")
Reported-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Tested-by: Leonard Crestez <leonard.crestez@nxp.com>
Link: https://lore.kernel.org/r/20200325090658.25967-1-michael@walle.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c