dmaengine: mmp_tdma: Do not ignore slave config validation errors
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 19 Apr 2020 16:49:06 +0000 (18:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:20:14 +0000 (08:20 +0200)
commit6c414ddee7f040bb81d4e01eac4350e82b1809ec
tree0737567c72d43687a0a981377b872ecc0c86af05
parentde76c0d4a03c2a7121919dd799fe9d83c8f33164
dmaengine: mmp_tdma: Do not ignore slave config validation errors

[ Upstream commit 363c32701c7fdc8265a84b21a6a4f45d1202b9ca ]

With an invalid dma_slave_config set previously,
mmp_tdma_prep_dma_cyclic() would detect an error whilst configuring the
channel, but proceed happily on:

  [  120.756530] mmp-tdma d42a0800.adma: mmp_tdma: unknown burst size.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200419164912.670973-2-lkundrak@v3.sk
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/mmp_tdma.c