Skip to content

Conversation

@nordic-krch
Copy link
Contributor

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.

…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]>
@nordic-krch nordic-krch added bug The issue is a bug, or the PR is fixing a bug area: API Changes to public APIs area: Clock Control labels Nov 20, 2019
@zephyrbot
Copy link

zephyrbot commented Nov 20, 2019

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.

@nordic-krch nordic-krch force-pushed the fix_clock_control_async_on_dox branch from df722e7 to c18edf1 Compare November 20, 2019 08:14
@carlescufi
Copy link
Member

@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]>
@nordic-krch nordic-krch force-pushed the fix_clock_control_async_on_dox branch from c18edf1 to 3048a87 Compare November 20, 2019 14:07
@nordic-krch
Copy link
Contributor Author

@carlescufi done.

Copy link
Contributor

@mbolivar mbolivar left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Function is non-blocking and can be called from any context.
* This function is non-blocking, and can be called from any context.

@carlescufi carlescufi merged commit 16ba258 into zephyrproject-rtos:master Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: Clock Control 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.

6 participants