]> git.baikalelectronics.ru Git - kernel.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)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jul 2022 11:03:13 +0000 (12:03 +0100)
commit05994d7cdf71d4213fbb42d85ee42ae214a6a36d
treeea35446848dabafac129bc1a68d441dcada04f3b
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
ASoC: mchp-spdifrx: disable end of block interrupt on failures

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: 5c8954cfbcfe ("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>
sound/soc/atmel/mchp-spdifrx.c