aboutsummaryrefslogtreecommitdiff
path: root/drivers/reset
diff options
context:
space:
mode:
authorAndreas Dannenberg2018-08-27 15:57:39 +0530
committerTom Rini2018-09-11 08:32:55 -0400
commite7012e6e1f9e1c16f093d71bd53b34a6467f07bc (patch)
tree3ae6f0557351476502ee371cbc4a82c81465e1db /drivers/reset
parentaec99c9776d33a1c2218f975a02cb1068cdcf579 (diff)
dm: reset: Update uclass to allow querying reset status
Add a reset operations function pointer to support querying the current status of a reset control. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'drivers/reset')
-rw-r--r--drivers/reset/reset-uclass.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/reset/reset-uclass.c b/drivers/reset/reset-uclass.c
index 38995376350..89e39c6b5aa 100644
--- a/drivers/reset/reset-uclass.c
+++ b/drivers/reset/reset-uclass.c
@@ -192,6 +192,15 @@ int reset_deassert_bulk(struct reset_ctl_bulk *bulk)
return 0;
}
+int reset_status(struct reset_ctl *reset_ctl)
+{
+ struct reset_ops *ops = reset_dev_ops(reset_ctl->dev);
+
+ debug("%s(reset_ctl=%p)\n", __func__, reset_ctl);
+
+ return ops->rst_status(reset_ctl);
+}
+
int reset_release_all(struct reset_ctl *reset_ctl, int count)
{
int i, ret;