From aff679514e9e07a0fa243018786e27746616e421 Mon Sep 17 00:00:00 2001 From: Erik Bourget Date: Sun, 15 Nov 2026 22:59:54 -0500 Subject: [PATCH] nvme: apple: the T6050 ANS2 sleep attachment on the J716c The ANS2 storage controller's attachment to the T6050 deep sleep was set up on the J714s only. The J716c's controller has the same split NVMe/NVMMU layout and retained SART: attach it there too, on a machine that is both apple,t6050 and apple,j716c. As on the J714s, the wait before the restart after a sleep still comes from the DT. Developed with Claude Code. Signed-off-by: Erik Bourget --- drivers/nvme/host/apple-m5-sleep.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/nvme/host/apple-m5-sleep.h b/drivers/nvme/host/apple-m5-sleep.h index e3e8b0bedf511..f22d6902bf256 100644 --- a/drivers/nvme/host/apple-m5-sleep.h +++ b/drivers/nvme/host/apple-m5-sleep.h @@ -167,7 +167,10 @@ static int apple_nvme_m5_attach(struct apple_nvme *anv) { int ret; - if (!of_machine_is_compatible("apple,j714s")) + /* Both boards use T6050 ANS2's split NVMe/NVMMU layout and retained SART. */ + if (!of_machine_is_compatible("apple,t6050") || + (!of_machine_is_compatible("apple,j714s") && + !of_machine_is_compatible("apple,j716c"))) return -EOPNOTSUPP; /* The wait before the restart after a sleep comes from the DT; without it, no sleep. */ if (of_property_read_u32(anv->dev->of_node, "apple,sleep-wake-delay-ms",