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
Enhancement Changes/Updates/Additions to existing features

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

3 participants