-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: clock_control: Clarify allowed calling context of API functions #20814
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
drivers: clock_control: Clarify allowed calling context of API functions #20814
Conversation
…nc_on Description of clock_control_async_on contained information about delayed start which is not supported by this function call. Signed-off-by: Krzysztof Chruscinski <[email protected]>
|
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
df722e7 to
c18edf1
Compare
|
@nordic-krch can you please fix the gitlint issue? |
Clarified that clock_control_off and clock_control_async_on can be called from any context since they are non-blocking. Signed-off-by: Krzysztof Chruscinski <[email protected]>
c18edf1 to
3048a87
Compare
|
@carlescufi done. |
mbolivar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The suggested changes would be more correct grammatically, but I'm OK with this as is.
| * @brief Disable the clock of a sub-system controlled by the device | ||
| * @brief Disable the clock of a sub-system controlled by the device. | ||
| * | ||
| * Function is non-blocking and can be called from any context. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Function is non-blocking and can be called from any context. | |
| * This function is non-blocking, and can be called from any context. |
| * User can request delayed start by providing exact information when clock | ||
| * should be ready. Driver ensures that clock is ready before requested time. | ||
| * It is the driver responsibility to take into account clock startup time. | ||
| * Function is non-blocking and can be called from any context. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Function is non-blocking and can be called from any context. | |
| * This function is non-blocking, and can be called from any context. |
Clarified that clock_control_off and clock_control_async_on can be called from any context since they are non-blocking.
Additionally, fixed:
drivers: clock_control: Remove false description of clock_control_async_on
Description of clock_control_async_on contained information about
delayed start which is not supported by this function call.
Given that #20710 (comment), I've updated function descriptions to explicitly state that they can be called from any context.