]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: mchp-spdifrx: disable end of block interrupt on failures
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 27 Jul 2022 09:08:13 +0000 (12:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:42:10 +0000 (14:42 +0200)
commit8662de1b4fadb8eac8ac746c424f0c5644928705
tree4800cea8df40d9573519c0baa397f8cf5349d7c5
parent2b15d1d365a7ef3061539279ded336a1d4c40a6b
ASoC: mchp-spdifrx: disable end of block interrupt on failures

[ Upstream commit 768ac4f12ca0fda935f58eb8c5120e9d795bc6e3 ]

Disable end of block interrupt in case of wait for completion timeout
or errors to undo previously enable operation (done in
mchp_spdifrx_isr_blockend_en()). Otherwise we can end up with an
unbalanced reference counter for this interrupt.

Fixes: ef265c55c1ac ("ASoC: mchp-spdifrx: add driver for SPDIF RX")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220727090814.2446111-2-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/atmel/mchp-spdifrx.c