[PATCH] power: domain: apple: Restore reset ops that return 0
Mark Kettenis
kettenis at openbsd.org
Tue Apr 26 19:14:09 CEST 2022
These were removed inadvertently in commit 20874a60722b.
Fixes a crash on Apple M1 systems.
Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
---
drivers/power/domain/apple-pmgr.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/power/domain/apple-pmgr.c b/drivers/power/domain/apple-pmgr.c
index 402c5b1fd1..88eafd0468 100644
--- a/drivers/power/domain/apple-pmgr.c
+++ b/drivers/power/domain/apple-pmgr.c
@@ -42,6 +42,16 @@ static int apple_reset_of_xlate(struct reset_ctl *reset_ctl,
return 0;
}
+static int apple_reset_request(struct reset_ctl *reset_ctl)
+{
+ return 0;
+}
+
+static int apple_reset_free(struct reset_ctl *reset_ctl)
+{
+ return 0;
+}
+
static int apple_reset_assert(struct reset_ctl *reset_ctl)
{
struct apple_pmgr_priv *priv = dev_get_priv(reset_ctl->dev->parent);
@@ -70,6 +80,8 @@ static int apple_reset_deassert(struct reset_ctl *reset_ctl)
struct reset_ops apple_reset_ops = {
.of_xlate = apple_reset_of_xlate,
+ .request = apple_reset_request,
+ .rfree = apple_reset_free,
.rst_assert = apple_reset_assert,
.rst_deassert = apple_reset_deassert,
};
--
2.35.2
More information about the U-Boot
mailing list