mfd: arizona: Correctly report when AIF2/AIF1 is underclocked
Subsystems (2)
PATCH 2/2 mfd: arizona: Correctly report when AIF2/AIF1 is underclocked
In the interrupt handler for an underclocked event, whilst checking for the source of the interrupt, AIF3 was checked twice and AIF1 was not checked. This change correctly checks the AIF1 underclocked bit and reports the correct error messages for all cases.
Signed-off-by Charles Keepax <[email protected]>
--- drivers/mfd/arizona-core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/arizona-core.c +2 -2
@@ -98,9 +98,9 @@ static irqreturn_t arizona_underclocked(int irq, void *data)if (val &ARIZONA_AIF3_UNDERCLOCKED_STS )dev_err (arizona->dev,"AIF3 underclocked\n" ); -if (val &ARIZONA_AIF3_UNDERCLOCKED_STS ) -dev_err (arizona->dev,"AIF3 underclocked\n" );if (val &ARIZONA_AIF2_UNDERCLOCKED_STS ) +dev_err (arizona->dev,"AIF2 underclocked\n" ); +if (val &ARIZONA_AIF1_UNDERCLOCKED_STS )dev_err (arizona->dev,"AIF1 underclocked\n" );if (val &ARIZONA_ISRC2_UNDERCLOCKED_STS )dev_err (arizona->dev,"ISRC2 underclocked\n" );
Signature · 1 line
1.7.2.5
Quoted 4 lines · Charles Keepax
In the interrupt handler for an underclocked event, whilst checking for the source of the interrupt, AIF3 was checked twice and AIF1 was not checked. This change correctly checks the AIF1 underclocked bit and reports the correct error messages for all cases.
Reviwed-by Mark Brown <[email protected]>