]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: apple: mca: Improve handling of unavailable DMA channels
authorMartin Povišer <povik+lin@cutebit.org>
Fri, 24 Feb 2023 15:33:02 +0000 (16:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:50:36 +0000 (13:50 +0100)
commitacb1ad743e136c262e0d0d6e2fde866d8e395b09
treef6e172c5a69513fc0a10aad3e3a57fd685cc0a20
parent0f18cd1d77e2e57fbba531169e997bedbf1f2d94
ASoC: apple: mca: Improve handling of unavailable DMA channels

[ Upstream commit fb1847cc460c127b12720119eae5f438ffc62e85 ]

When we fail to obtain a DMA channel, don't return a blanket -EINVAL,
instead return the original error code if there's one. This makes
deferring work as it should. Also don't print an error message for
-EPROBE_DEFER.

Fixes: 4ec8179c212f ("ASoC: apple: mca: Postpone requesting of DMA channels")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20230224153302.45365-3-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/apple/mca.c