OSDN Git Service

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)
commitd40e3e9e44db4b3c8777f3b515ba6097ba26e3b2
tree3d23248a0db2eb3d0e48d9b34799b50d1eb30dca
parent5ea752c6efdf5aa8a57aed816d453a8f479f1b0a
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