-
Notifications
You must be signed in to change notification settings - Fork 7.6k
drivers: spi: spi_context.h: remove multithreading dependency #90647
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
drivers: spi: spi_context.h: remove multithreading dependency #90647
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to do thread-free bus operations, RTIO supports this if the driver supports it with only atomics and lock free queues involved.
At a minimum volatile is the wrong thing here imho. But looking a little further... is this really the right approach to doing thread-free SPI when there's a thread-free option available that does the same thing without the caveats?
9fe55e4
to
1add805
Compare
Replace semaphores with proper atomic flags when used without multithreading enabled. Signed-off-by: Michal Kozikowski <[email protected]>
1add805
to
068afd9
Compare
|
Ready to be merged. |
The SPI maintainer @tbursztyka (assignee) needs to review and approve before its ready to merge. |
Replace semaphores with proper atomic flags when used without multithreading enabled.