Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irq: add nested locking support #425

Open
wants to merge 2 commits into
base: zephyr
Choose a base branch
from

Conversation

sylvioalves
Copy link
Collaborator

@sylvioalves sylvioalves commented Mar 14, 2025

Some RF libraries require that irq_lock and irq_unlock have some nested mechanism. This brings such approach to all files linked to RF calls.

@sylvioalves sylvioalves force-pushed the bugfix/irq_lock_nested branch 2 times, most recently from 0a54c98 to 662efb0 Compare March 19, 2025 19:26
@sylvioalves sylvioalves removed the DNM label Mar 24, 2025
@sylvioalves sylvioalves force-pushed the bugfix/irq_lock_nested branch 2 times, most recently from 80ce532 to 83e5d0a Compare March 25, 2025 14:29
@sylvioalves sylvioalves removed the DNM label Mar 25, 2025
@sylvioalves sylvioalves force-pushed the bugfix/irq_lock_nested branch from 83e5d0a to 75c6930 Compare March 25, 2025 15:43
Copy link
Collaborator

@marekmatej marekmatej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sylvioalves sylvioalves force-pushed the bugfix/irq_lock_nested branch from 75c6930 to e339586 Compare March 25, 2025 15:57
Make sure Wi-Fi and BLE blob calls have nested and atomic
access. The peripherals in this PR need to use atomic and
nested call handling as it is either used in RF blobs or spread
among multiple drivers.

- phy
- regi2c
- periph_ctrl
- esp_timer

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Make sure all peripherals in this PR use local irq_lock
and irq_unlock instead of common nested reference.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
@sylvioalves sylvioalves force-pushed the bugfix/irq_lock_nested branch from e339586 to 0724749 Compare March 25, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants