diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-16 00:15:42 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-11 20:22:34 +0300 |
commit | 4aa5053da5fa0729d30bce5df9a0a037a391f2f3 (patch) | |
tree | 57dc63c9a91a2b85306b94b35b8deb646d5362df /include | |
parent | c38a21d7199b2e34af2d161fc58674ec81b2105d (diff) | |
download | u-boot-4aa5053da5fa0729d30bce5df9a0a037a391f2f3.tar.xz |
timer: Tidy up use of notrace
Tracing is typically enabled by the time driver model starts up, so there
is no point in adding a 'notrace' to the timer-init function. However,
once the driver model timer is enabled, we do need to be able to access
the timer's private data when reading the timer, so add it to the core
function needed for that.
Update the function's documentation while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/timer.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/timer.h b/include/timer.h index d33a26e28f..311ce6b2c3 100644 --- a/include/timer.h +++ b/include/timer.h @@ -9,11 +9,16 @@ #define timer_get_ops(dev) ((struct timer_ops *)(dev)->driver->ops) /** - * dm_timer_init() - initialize a timer for time keeping. On success - * initializes gd->timer so that lib/timer can use it for future - * referrence. + * dm_timer_init() - set up a timer for time keeping * - * Return: 0 on success or error number + * Sets up gd->timer if the device is not already bound, making sure it is + * probed and ready for use + * + * On success, inits gd->timer so that lib/timer can use it for future reference + * + * Returns: 0 on success, -EAGAIN if driver model is not ready yet, -ENODEV if + * no timer could be found, other error if the timer could not be bound or + * probed */ int dm_timer_init(void); |