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

SPI RevA: Fixing async status variable overwrite. #312

Merged
merged 1 commit into from
Jan 23, 2023
Merged

SPI RevA: Fixing async status variable overwrite. #312

merged 1 commit into from
Jan 23, 2023

Conversation

Jacob-Scheiffler
Copy link
Contributor

The status variable "async" in spi_reva.c was getting overwritten by other SPI requests. Thus, if the SPI request which set the status variable to "1" had not completed yet, the callback function would not be called. To protect against this, I moved it into the spi_reva_req_state_t struct. This prevents a SPI instance from overwriting another's "async" status.

Copy link
Contributor

@Jake-Carter Jake-Carter left a comment

Choose a reason for hiding this comment

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

Looks good!

@sihyung-maxim sihyung-maxim merged commit 214b693 into analogdevicesinc:main Jan 23, 2023
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.

3 participants