From bdc95c469b3ec6f9befa8d16c5a6eef4983e76b3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 1 Dec 2026 11:13:03 -0700 Subject: [PATCH] wifi: apple: centauri: t6050: warm-reset an N1 found past its ROM The driver's unbind leaves the N1 firmware running, so the next probe (a module reload, or a sysfs unbind and bind) finds the boot stage register non-zero and fails the ROM boot with -EBUSY. Nothing restarts the N1 after that, and Wi-Fi and Bluetooth stay down until a reboot. When the board describes the warm reset, report that boot as a hardware failure instead. The fault recovery then warm-resets the N1 and brings its functions back from the ROM, as it does for a firmware that stops. Signed-off-by: Jens Axboe --- .../wireless/apple/centauri/t6050/centauri_pci.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/apple/centauri/t6050/centauri_pci.c b/drivers/net/wireless/apple/centauri/t6050/centauri_pci.c index 97331b2c20186..ded5de3604dbf 100644 --- a/drivers/net/wireless/apple/centauri/t6050/centauri_pci.c +++ b/drivers/net/wireless/apple/centauri/t6050/centauri_pci.c @@ -323,8 +323,18 @@ static int centauri_t6050_rom_boot(struct centauri_t6050 *c) if (!c->link_ready || c->boot_attempted) return -EBUSY; stage = readl(c->bar + 0x8000); - if (stage != 0) - return -EBUSY; + if (stage != 0) { + /* + * Past the ROM: an earlier binding's firmware (a module reload) + * still runs. Only a warm reset gets the ROM back, so hand this to + * the fault recovery as a failed boot. + */ + if (!c->warm_reset) + return -EBUSY; + dev_info(dev, "N1 not in its ROM (stage %#x); warm reset\n", stage); + c->boot_hw_failed = true; + return -EIO; + } ret = request_firmware_direct(&fw, c->firmware_name, dev); if (ret) {