Skip to content

drivers: flash: npcx: add k_usleep when polling busy status #90784

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

Open
alvsun opened this issue May 29, 2025 · 0 comments
Open

drivers: flash: npcx: add k_usleep when polling busy status #90784

alvsun opened this issue May 29, 2025 · 0 comments
Assignees
Labels
Backport Backport PR and backport failure issues Enhancement Changes/Updates/Additions to existing features platform: Nuvoton NPCX Nuvoton NPCX priority: low Low impact/importance bug

Comments

@alvsun
Copy link
Collaborator

alvsun commented May 29, 2025

Is your enhancement proposal related to a problem? Please describe.
Busy polling flash status wastes CPU cycles and may block lower-priority threads.

Describe the solution you'd like
Adding k_usleep while polling the flash's busy status yields the CPU
resource, giving lower-priority threads the opportunity to run.

@alvsun alvsun added the Enhancement Changes/Updates/Additions to existing features label May 29, 2025
@alvsun alvsun added platform: Nuvoton NPCX Nuvoton NPCX priority: low Low impact/importance bug Backport Backport PR and backport failure issues labels Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Backport PR and backport failure issues Enhancement Changes/Updates/Additions to existing features platform: Nuvoton NPCX Nuvoton NPCX priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants