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

iio: frequency: ad9172: Fix jesd204-fsm final state transition #2075

Merged
merged 1 commit into from Nov 30, 2022

Conversation

mhennerich
Copy link
Contributor

jesd204-fsm callbacks must return JESD204_STATE_CHANGE_DONE on success. Returning 0 is equal to JESD204_STATE_CHANGE_DEFER, which will stop/stall the FSM until it is resumed.

This fixes this erroneous behavior.

fixes: 7a4e388 ("iio: frequency: ad9172: Add support for jesd204-fsm")

Signed-off-by: Michael Hennerich michael.hennerich@analog.com

jesd204-fsm callbacks must return JESD204_STATE_CHANGE_DONE on success.
Returning 0 is equal to JESD204_STATE_CHANGE_DEFER, which will stop/stall
the FSM until it is resumed.

This fixes this erroneous behavior.

fixes: 7a4e388 ("iio: frequency: ad9172: Add support for jesd204-fsm")

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
@mhennerich mhennerich requested a review from a team November 30, 2022 08:56
@nunojsa nunojsa merged commit 9d47dcf into master Nov 30, 2022
@nunojsa nunojsa deleted the fix-ad9172-jesd204-fsm branch November 30, 2022 09:58
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.

None yet

2 participants