From 64481610d3c7cc23ae414cfcf3543299ebb62a5c Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Tue, 1 Dec 2026 15:50:35 +1100 Subject: [PATCH] soc: apple: sleep: take the T6050 sleep from its DT node alone apple_t6050_sleep_property() also required the machine compatible "apple,t6050" before it looked at the "apple,t6050-sleep" node. The node is the description of the firmware-driven sleep; a board without that SoC has no such node. Drop the machine-name check. Every in-tree DTB with an available apple,t6050-sleep node is a T6050 machine (j714s, j716c, k116s), so the result is unchanged for all of them. Signed-off-by: Ryan Murray --- include/linux/soc/apple/sleep.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/soc/apple/sleep.h b/include/linux/soc/apple/sleep.h index 9b7d29e3ef8d9..9e79e41ca239c 100644 --- a/include/linux/soc/apple/sleep.h +++ b/include/linux/soc/apple/sleep.h @@ -16,17 +16,16 @@ struct device; struct resource; /* - * A T6050 machine whose device tree describes the firmware-driven sleep. What a - * driver does for that sleep follows the description, not a list of boards. - * With @prop: the description also has that property. + * A device tree that describes the T6050 firmware-driven sleep: an available + * "apple,t6050-sleep" node. What a driver does for that sleep follows the + * description, not a list of boards or SoCs. With @prop: the description also + * has that property. */ static inline bool apple_t6050_sleep_property(const char *prop) { struct device_node *np; bool ret; - if (!of_machine_is_compatible("apple,t6050")) - return false; np = of_find_compatible_node(NULL, NULL, "apple,t6050-sleep"); ret = np && of_device_is_available(np) && (!prop || of_property_read_bool(np, prop)); of_node_put(np);