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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 12:00:23 +0000 (13:00 +0100)
commit1cdb964611855ac64cceb043151abe4461ed87e6
tree2ecee7a96d998f78632ec884ee26cd755d7f5333
parent772e5f29c94254fb071ada67dea697e8dcf3384e
dmaengine: imx-sdma: Fix the event id check to include RX event for UART6

commit 25962e1a7f1d522f1b57ead2f266fab570042a70 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/imx-sdma.c