diff options
author | Amjad Ouled-Ameur <aouledameur@baylibre.com> | 2020-11-13 00:00:43 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2020-11-16 17:05:28 +0100 |
commit | 557acb3d2cd9c82de19f944f6cc967a347735385 (patch) | |
tree | 3109b1a54995d97e6ae021da6cba94c0557e03c8 /include/linux/reset.h | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
download | linux-557acb3d2cd9c82de19f944f6cc967a347735385.tar.gz linux-557acb3d2cd9c82de19f944f6cc967a347735385.tar.bz2 linux-557acb3d2cd9c82de19f944f6cc967a347735385.zip |
reset: make shared pulsed reset controls re-triggerable
The current reset framework API does not allow to release what is done by
reset_control_reset(), IOW decrement triggered_count. Add the new
reset_control_rearm() call to do so.
When reset_control_reset() has been called once, the counter
triggered_count, in the reset framework, is incremented i.e the resource
under the reset is in-use and the reset should not be done again.
reset_control_rearm() would be the way to state that the resource is
no longer used and, that from the caller's perspective, the reset can be
fired again if necessary.
Signed-off-by: Amjad Ouled-Ameur <aouledameur@baylibre.com>
Reported-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include/linux/reset.h')
-rw-r--r-- | include/linux/reset.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/reset.h b/include/linux/reset.h index 05aa9f440f48..439fec7112a9 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -13,6 +13,7 @@ struct reset_control; #ifdef CONFIG_RESET_CONTROLLER int reset_control_reset(struct reset_control *rstc); +int reset_control_rearm(struct reset_control *rstc); int reset_control_assert(struct reset_control *rstc); int reset_control_deassert(struct reset_control *rstc); int reset_control_status(struct reset_control *rstc); |