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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 09:55:54 +0000 (02:55 -0700)
commit9e6a69b065758615c0b631e5675403e086f88c7c
treef727fec428c2d2cef38fde9326b709937edebf1d
parentdf231dbe93ebefdc2bd959550fe4856472113251
ASoC: tas6424: Save last fault register even when clear

commit d40e3e9e44db4b3c8777f3b515ba6097ba26e3b2 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/tas6424.c