Skip to content

nRF clock_control_on() is nonblocking #20712

@mbolivar

Description

@mbolivar

Describe the bug

Per discussion in #20708, the non-async clock enable function clock_control_on() should block until the clock is ready, but the nRF clock driver doesn't.

To Reproduce

  • call clock_control_on() on an nRF clock that isn't already enabled
  • observe clock_start() in nrf_power_clock.c calls clock_async_start() directly with no callback
  • without a callback, note clock_async_start() returns before the clock may be ready

Expected behavior

Clock status should be definitely ready by the time clock_control_on() returns.

Impact

Unknown.

Environment (please complete the following information):

nRF platform, possibly others.

Additional context

Discussion in #20708 and #20710.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions