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

[help]: Confirm the delay in the reset driver #75

Open
Judehahh opened this issue Sep 26, 2024 · 2 comments
Open

[help]: Confirm the delay in the reset driver #75

Judehahh opened this issue Sep 26, 2024 · 2 comments
Assignees

Comments

@Judehahh
Copy link

Help

Hi,

I am trying to add support for the reset controller to mainline kernel, and there are a few questions about delay that need to be confirmed:

  1. After clear done bit, before set reset bit, is delay required? and how long is the delay?
  2. After set reset bit, before clear reset bit, what is the minimum delay required to satisfy all reset consumers?
  3. After clear reset bit/reset auto done, how long does it take for the done bit to be auto set?
@wycwyhwyq
Copy link
Member

@Judehahh
Copy link
Author

@wycwyhwyq

Please refer to this code https://github.com/ruyisdk/linux-xuantie-kernel/blob/linux-6.6.36/drivers/reset/reset-k230.c

Thanks. This code uses udelay(10) when doing the reset operation. So that means it is certain that 10us is enough for all reset consumers to complete the reset operation?

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

No branches or pull requests

4 participants