Skip to content
Unverified Commit f0691dc1 authored by Dmytro Maluka's avatar Dmytro Maluka Committed by Mark Brown
Browse files

ASoC: da7219: Check for failure reading AAD IRQ events



When handling an AAD interrupt, if IRQ events read failed (for example,
due to i2c "Transfer while suspended" failure, i.e. when attempting to
read it while DA7219 is suspended, which may happen due to a spurious
AAD interrupt), the events array contains garbage uninitialized values.
So instead of trying to interprete those values and doing any actions
based on them (potentially resulting in misbehavior, e.g. reporting
bogus events), refuse to handle the interrupt.

Signed-off-by: default avatarDmytro Maluka <dmy@semihalf.com>
Link: https://lore.kernel.org/r/20230717193737.161784-3-dmy@semihalf.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 91e29291
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment