Skip to content

Conversation

@JordanYates
Copy link
Contributor

Only run the uninit function if the SPI instance has previously been
configured. This stops an assertion in the HAL drivers from triggering
due to running uninit without a previous init.

Fixes #42299.

Signed-off-by: Jordan Yates [email protected]

@github-actions github-actions bot added the area: SPI SPI bus label Jan 31, 2022
@gmarull gmarull requested a review from anangl January 31, 2022 09:25
@gmarull gmarull added the bug The issue is a bug, or the PR is fixing a bug label Jan 31, 2022
@gmarull gmarull added this to the v3.0.0 milestone Jan 31, 2022
Only run the `uninit` function if the SPI instance has previously been
configured. This stops an assertion in the HAL drivers from triggering
due to running `uninit` without a previous `init`.

Fixes #42299.

Signed-off-by: Jordan Yates <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: SPI SPI bus bug The issue is a bug, or the PR is fixing a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spi: nRF HAL driver asserts when PM is used

4 participants