diff options
| author | Cristian Ciocaltea <cristian.ciocaltea@collabora.com> | 2025-10-03 21:03:25 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-10-13 13:18:00 +0100 |
| commit | a698679fe8b0fec41d1fb9547a53127a85c1be92 (patch) | |
| tree | 48c467ebb74ee57cd8fbf8de9ce6028e7958e623 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | ASoC: nau8821: Generalize helper to clear IRQ status (diff) | |
| download | linux-a698679fe8b0fec41d1fb9547a53127a85c1be92.tar.gz linux-a698679fe8b0fec41d1fb9547a53127a85c1be92.zip | |
ASoC: nau8821: Consistently clear interrupts before unmasking
The interrupt handler attempts to perform some IRQ status clear
operations *after* rather than *before* unmasking and enabling
interrupts. This is a rather fragile approach since it may generally
lead to missing IRQ requests or causing spurious interrupts.
Make use of the nau8821_irq_status_clear() helper instead of
manipulating the related register directly and ensure any interrupt
clearing is performed *after* the target interrupts are disabled/masked
and *before* proceeding with additional interrupt unmasking/enablement
operations.
This also implicitly drops the redundant clear operation of the ejection
IRQ in the interrupt handler, since nau8821_eject_jack() has been
already responsible for clearing all active interrupts.
Fixes: aab1ad11d69f ("ASoC: nau8821: new driver")
Fixes: 2551b6e89936 ("ASoC: nau8821: Add headset button detection")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patch.msgid.link/20251003-nau8821-jdet-fixes-v1-3-f7b0e2543f09@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
