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

Small improvements on jesd204 and users #2648

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Conversation

nunojsa
Copy link
Collaborator

@nunojsa nunojsa commented Nov 15, 2024

PR Description

This PR improves devm_jesd204_dev_register() and adds a new devm_jesd204_fsm_start() API so we make sure to stop the FSM on unbind. Then, we update all users jesd204_fsm_start() () to use the new variant. ALong the way some drivers were completely converted to a full devm probe (meaning that we do not need any driver .remove() hook)

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly (if there is the case)

@nunojsa
Copy link
Collaborator Author

nunojsa commented Nov 15, 2024

v2:

  • fix build for platforms that do not enable jesd204

There's no need to allocate a new devres context. Just use
devm_add_action_or_reset().

Signed-off-by: Nuno Sa <[email protected]>
Add a device managed version of jesd204_fsm_start().

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it and as it seems the framework is optional, only start it if
jdev is not NULL. This is not a check that should be handled in the core
and I plan to change that in the future.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it and as it seems the framework is optional, only start it if
jdev is not NULL. This is not a check that should be handled in the core
and I plan to change that in the future.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it and as it seems the framework is optional, only start it if
jdev is not NULL. This is not a check that should be handled in the core
and I plan to change that in the future.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it and as it seems the framework is optional, only start it if
jdev is not NULL. This is not a check that should be handled in the core
and I plan to change that in the future. Also simplify probe with
devm_platform_ioremap_resource().

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it and as it seems the framework is optional, only start it if
jdev is not NULL. This is not a check that should be handled in the core
and I plan to change that in the future.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it and as it seems the framework is optional, only start it if
jdev is not NULL. This is not a check that should be handled in the core
and I plan to change that in the future.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it and as it seems the framework is optional, only start it if
jdev is not NULL. This is not a check that should be handled in the core
and I plan to change that in the future.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it and as it seems the framework is optional, only start it if
jdev is not NULL. This is not a check that should be handled in the core
and I plan to change that in the future.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it, remove the .remove() hook by using devm APIs or
devm_add_action_or_reset().

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

While at it, remove the .remove() hook by using devm APIs or
devm_add_action_or_reset().

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

Signed-off-by: Nuno Sa <[email protected]>
We should stop the jesd204 FSM on unbind.

Signed-off-by: Nuno Sa <[email protected]>
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.

1 participant