]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: mmp_tdma: Reset channel error on release
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 19 Apr 2020 16:49:09 +0000 (18:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:18:39 +0000 (08:18 +0200)
commit1cb0aed8cd18181f97ea5f9bf1ed3808300e860d
tree6a5d321d34ab4fcb1d4e3f1ea9a798dd4604c1ed
parent53d9db75d7a9f28467a62e7aa9507a8601cbfb44
dmaengine: mmp_tdma: Reset channel error on release

[ Upstream commit 0c89446379218698189a47871336cb30286a7197 ]

When a channel configuration fails, the status of the channel is set to
DEV_ERROR so that an attempt to submit it fails. However, this status
sticks until the heat end of the universe, making it impossible to
recover from the error.

Let's reset it when the channel is released so that further use of the
channel with correct configuration is not impacted.

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