Skip to content

flexcomm spi asynchroneous mode not working #87679

Answered by teburd
badevos asked this question in Q&A
Discussion options

You must be logged in to vote

Whether spi_transceive_cb is ~ or is not ~ asynchronous, is irrelevant in my opinion. Activating CONFIG_SPI_ASYNC implies that the function is asynchronous. Anyhow our application requires an asynchronous implementation. Is there another async function call to use?

This isn't at all guaranteed to be asynchronous, and the updated docs reflect this reality. The way it was implemented unfortunately still requires serializing access to the spi bus through a semaphore. The call may block while ongoing transfers from other threads are taking place. It may very likely return after the callback takes place as well... making it difficult to chain SPI requests together in a callback driven state …

Replies: 7 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@decsny
Comment options

decsny Mar 27, 2025
Collaborator

Comment options

You must be logged in to vote
3 replies
@decsny
Comment options

decsny Mar 27, 2025
Collaborator

@teburd
Comment options

teburd Mar 27, 2025
Collaborator

Answer selected by DerekSnell
@badevos
Comment options

Comment options

You must be logged in to vote
2 replies
@badevos
Comment options

@teburd
Comment options

teburd Mar 27, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
priority: low Low impact/importance bug area: SPI SPI bus platform: NXP Drivers NXP Semiconductors, drivers
5 participants
Converted from issue

This discussion was converted from issue #87054 on March 26, 2025 12:16.