]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas6424: Save last fault register even when clear
authorAndrew F. Davis <afd@ti.com>
Fri, 31 Aug 2018 15:14:05 +0000 (10:14 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 31 Aug 2018 15:23:25 +0000 (16:23 +0100)
commita8b57983a0f0e55857becf319d1597a3487f2b02
tree3d23248a0db2eb3d0e48d9b34799b50d1eb30dca
parent76ddeae2e3e5eb652c9c8ab7745f61cdce33cf07
ASoC: tas6424: Save last fault register even when clear

When there is no fault bit set in a fault register we skip the fault
reporting section for that register. This also skips over saving that
registers value. We save the value so we will not double report an
error, but if an error clears then returns we will also not report it
as we did not save the all cleared register value. Fix this by saving
the fault register value in the all clear path.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/tas6424.c