OSDN Git Service

dmaengine: imx-sdma: Fix the event id check to include RX event for UART6
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 25 Feb 2020 08:23:20 +0000 (08:23 +0000)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Feb 2020 08:45:26 +0000 (14:15 +0530)
commit25962e1a7f1d522f1b57ead2f266fab570042a70
tree45ce7228be2f8e995af5075548c70b3fc1e88b0b
parentc33ee1301c393a241d6424e36eff1071811b1064
dmaengine: imx-sdma: Fix the event id check to include RX event for UART6

On i.MX6UL/ULL and i.MX6SX the DMA event id for the RX channel of
UART6 is '0'. To fix the broken DMA support for UART6, we change
the check for event_id0 to include '0' as a valid id.

Fixes: 1ec1e82f2510 ("dmaengine: Add Freescale i.MX SDMA support")
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200225082139.7646-1-frieder.schrempf@kontron.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c