From cd9bb4dbfa4b4c4905370da0bbe31261af0a658d Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Tue, 1 Dec 2026 15:34:39 +1100 Subject: [PATCH] wifi: apple: centauri: Drop the alpha_sleep_untested parameter The Alpha host-power and ACIPC sleep handshake has run by default since the J813/J815 deep sleep rows, and the board gate is gone. The module parameter only lets a user turn off the handshake the firmware needs before a deep sleep; without it the firmware aborts the sleep about a minute in. Remove it, so the handshake always runs for a deep sleep (pm_suspend_via_firmware()) and never across s2idle, as before. Signed-off-by: Ryan Murray --- .../wireless/apple/centauri/centauri_wifi.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/net/wireless/apple/centauri/centauri_wifi.c b/drivers/net/wireless/apple/centauri/centauri_wifi.c index 69b21b3d2adc4..bb8ff60fa866f 100644 --- a/drivers/net/wireless/apple/centauri/centauri_wifi.c +++ b/drivers/net/wireless/apple/centauri/centauri_wifi.c @@ -93,15 +93,6 @@ static bool station_link_addresses; module_param(station_link_addresses, bool, 0400); MODULE_PARM_DESC(station_link_addresses, "Diagnostic: use the netdev address for each firmware link in this single-link WPA2 client"); -/* - * Alpha's host-power and ACIPC sleep handshake, for a deep sleep. Without it the firmware never - * hears the host is going to sleep and aborts the deep sleep about a minute in; it runs through - * full deep sleeps and wakes on J813 and J815 (MacBook Air 13" and 15" M5). =0 skips it. - */ -static bool alpha_sleep_untested = true; -module_param(alpha_sleep_untested, bool, 0600); -MODULE_PARM_DESC(alpha_sleep_untested, "Alpha host-power and ACIPC sleep handshake (default 1)"); - struct centauri_rx_snapshot { __le32 version, count; struct { @@ -4942,8 +4933,13 @@ int centauri_wifi_suspend(struct centauri *c) struct centauri_wifi *wifi = c->wifi; int ret, restore; - /* Only for a deep sleep: across s2idle the firmware keeps running as before. */ - if (!wifi || !READ_ONCE(alpha_sleep_untested) || !pm_suspend_via_firmware()) + /* + * Alpha's host-power and ACIPC sleep handshake, only for a deep sleep: across s2idle the + * firmware keeps running as before. Without it the firmware never hears the host is going + * to sleep and aborts the deep sleep about a minute in; it runs through full deep sleeps + * and wakes on J813 and J815 (MacBook Air 13" and 15" M5). + */ + if (!wifi || !pm_suspend_via_firmware()) return 0; mutex_lock(&wifi->lock); if (wifi->transport_paused || wifi->connected || wifi->connecting || wifi->scan_request ||