git: 53670ee165f4 - main - psci: Add FDT node status check
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Feb 2024 19:24:24 UTC
The branch main has been updated by stevek:
URL: https://cgit.FreeBSD.org/src/commit/?id=53670ee165f428fd7d27b9e2d1efb4ab2c9caec6
commit 53670ee165f428fd7d27b9e2d1efb4ab2c9caec6
Author: Stephen J. Kiernan <stevek@FreeBSD.org>
AuthorDate: 2024-02-15 16:57:32 +0000
Commit: Stephen J. Kiernan <stevek@FreeBSD.org>
CommitDate: 2024-02-15 19:24:15 +0000
psci: Add FDT node status check
Consider the PSCI missing if the FDT node status says it is not okay.
Reviewed by: andrew
Obtained from: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D43920
---
sys/dev/psci/psci.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/dev/psci/psci.c b/sys/dev/psci/psci.c
index 46d7a2f07181..0c8f094e0037 100644
--- a/sys/dev/psci/psci.c
+++ b/sys/dev/psci/psci.c
@@ -386,6 +386,9 @@ psci_fdt_callfn(psci_callfn_t *callfn)
return (PSCI_MISSING);
}
+ if (!ofw_bus_node_status_okay(node))
+ return (PSCI_MISSING);
+
*callfn = psci_fdt_get_callfn(node);
return (0);
}