Skip to content

Conversation

@ndreys
Copy link

@ndreys ndreys commented Nov 15, 2025

The benefit of using edge triggered interrupt is that they allow one to write handlers that don't require disabling/enabling of the interrupts. This driver donesn't leverage that and, in fact, by using edge trigger it opens up a race condition window between the read of the status register and re-enablement of the IRQ. During that window and IRQ can arrive and be lost stalling the data fetching completely.

The benefit of using edge triggered interrupt is that they allow one
to write handlers that don't require disabling/enabling of the
interrupts. This driver donesn't leverage that and, in fact, by using
edge trigger it opens up a race condition window between the read of
the status register and re-enablement of the IRQ. During that window
and IRQ can arrive and be lost stalling the data fetching completely.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants