From nobody Mon Nov 02 04:24:22 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jHz9y6PC5z6ydLH for ; Mon, 02 Nov 2026 04:24:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jHz9y45Dhz4gqM for ; Mon, 02 Nov 2026 04:24:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793593462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NOGsGLUdmM230E/3DeC6xXAORmBnjQxCxiDUvyLBU4Y=; b=UZT5fWx2gbh/C2TJxsRFoJZNj4EsTQwe6aAJz3IV4kMNn7XaBP54XP0wTBqBPKOkY5yDyB A/0lWGX9l1EOmHXveJFFuhT/yRsFZBXmFBEob+rh9ypEq4nRMMTxe2UMKZTggOD85LsOfY Sh+24v/REMtAIL5dJ2JgOmZfp4i2wYHBRjLww7dLtaua05Uf+TSDTgSyEjiYtDsQ0o9SDt zRmCdmptAfaF2rfRbX7N0y8D1u3n34NzNSIcPn3h9VLZ3Pr2cVDZPyQN6UpzjN3l0o2D2e PZ5n93sCHFnhi0EAjkQgth3knQsJbkjOa57JfgFwtrcYETxzBYDplyTisHrUZA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793593462; b=GHXsZ7yA9ERTmfca8CAqsnmNqa9KVa/n9DEIIR2x5f9TzJxShdQzy9b6y+pFiz0MpIl2zK 0V2sGCZn+eiSsBnqhmy1ab/afdcm3YFgnTCtzxQcKpPYWvHhk7DndNtvaIX1hZTFDSfzb9 0tZ3QK8MxDSOmByjpYTRVTfptxWpNIIaWq2lgUk7VP6KO5qrh5+gQOoDsyeT7WjkU+1wtg +Ft55h3dNPwYpf2dg/pehZ4RlGEyifANco8aruKJ/zO6SQjNTfuc/jhYCsx3rMs/XE4/bH EambKfuDeEbHO1Fzk6DoNS4R24fxmpbu5FDOAQDlA0OtnSFyIC5Rnrf6+7v83w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793593462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NOGsGLUdmM230E/3DeC6xXAORmBnjQxCxiDUvyLBU4Y=; b=BXnlGymw/GyxtZKIoj9QkicxIroEW7C0Vr5rvcOqJV8d28Ekksci8aEIqvhqlOCZwtu3yW ZPWWzNumBp/sESWPDmDoCCMihljd3mTHnOrsOKQOvTYrkTR5gMtr8J0rd74OiygAyosE7b O16FnyLdtQYMEij50wA4dIVs1aj7pWfHYs2TIwgwZBX3afl8G/94q6+eZNbCJ5SLi/llXJ xdqf+N5meeLQwnoTUmrHE6YfduoRlPDJy72pj/NUwzgqftd7OjdOFvZvNFeJWudI0CI2ak FjggbTOX9aR69dlDBehkEFgSkkpLm7q6dCmRHGAYHXXhmsz7tKUkSlqHTWmpVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jHz9y3lkFzT40 for ; Mon, 02 Nov 2026 04:24:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41c67 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 02 Nov 2026 04:24:22 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Abdelkader Boudih From: Enji Cooper Subject: git: 5a9d56c68c08 - stable/15 - acpi_panasonic: Clear wireless RF_KILL on boot and resume List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 5a9d56c68c08431d1f98b758aa65c9668d158564 Auto-Submitted: auto-generated Date: Mon, 02 Nov 2026 04:24:22 +0000 Message-Id: <6ae81076.41c67.6168b737@gitrepo.freebsd.org> The branch stable/15 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=5a9d56c68c08431d1f98b758aa65c9668d158564 commit 5a9d56c68c08431d1f98b758aa65c9668d158564 Author: Abdelkader Boudih AuthorDate: 2026-02-23 16:11:10 +0000 Commit: Enji Cooper CommitDate: 2026-11-02 04:24:17 +0000 acpi_panasonic: Clear wireless RF_KILL on boot and resume On Panasonic FZ-Y1 and similar models, the EC latches RF_KILL on shutdown and suspend when battery is at certain level, causing wireless to boot with hard block. Call WLSW.SHRF during attach and resume to clear the block. Tested on Panasonic FZ-Y1 with Intel Wireless 7265. Reviewed by: adrian, obiwac Approved by: adrian, obiwac Differential Revision: https://reviews.freebsd.org/D55265 (cherry picked from commit 16822dac32ab8955539ffa4eda05145df8638154) --- sys/dev/acpi_support/acpi_panasonic.c | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/sys/dev/acpi_support/acpi_panasonic.c b/sys/dev/acpi_support/acpi_panasonic.c index f6e943201b23..5f54ca07c5a6 100644 --- a/sys/dev/acpi_support/acpi_panasonic.c +++ b/sys/dev/acpi_support/acpi_panasonic.c @@ -80,6 +80,8 @@ static int acpi_panasonic_probe(device_t dev); static int acpi_panasonic_attach(device_t dev); static int acpi_panasonic_detach(device_t dev); static int acpi_panasonic_shutdown(device_t dev); +static int acpi_panasonic_resume(device_t dev); +static void acpi_panasonic_clear_rfkill(device_t dev); static int acpi_panasonic_sysctl(SYSCTL_HANDLER_ARGS); static UINT64 acpi_panasonic_sinf(ACPI_HANDLE h, UINT64 index); static void acpi_panasonic_sset(ACPI_HANDLE h, UINT64 index, @@ -116,6 +118,7 @@ static device_method_t acpi_panasonic_methods[] = { DEVMETHOD(device_attach, acpi_panasonic_attach), DEVMETHOD(device_detach, acpi_panasonic_detach), DEVMETHOD(device_shutdown, acpi_panasonic_shutdown), + DEVMETHOD(device_resume, acpi_panasonic_resume), DEVMETHOD_END }; @@ -172,6 +175,8 @@ acpi_panasonic_attach(device_t dev) CTLFLAG_MPSAFE, sc, i, acpi_panasonic_sysctl, "I", ""); } + acpi_panasonic_clear_rfkill(dev); + #if 0 /* Activate hotkeys */ status = AcpiEvaluateObject(sc->handle, "", NULL, NULL); @@ -234,6 +239,37 @@ acpi_panasonic_shutdown(device_t dev) return (0); } +static int +acpi_panasonic_resume(device_t dev) +{ + + acpi_panasonic_clear_rfkill(dev); + return (0); +} + +static void +acpi_panasonic_clear_rfkill(device_t dev) +{ + ACPI_HANDLE wlsw_handle; + ACPI_STATUS status; + + /* + * Call WLSW.SHRF to clear wireless RF_KILL on models that have it. + * On FZ-Y1 and similar models, the EC latches RF_KILL on shutdown + * and suspend, causing the wireless card to boot with hard block + * enabled. The SHRF method sets the EC state to deassert RF_KILL + * GPIO on mini-PCIe pin 20 via SMI (ASRV call with function + * 0x0F/0x03). + */ + status = AcpiGetHandle(NULL, "\\_SB.WLSW", &wlsw_handle); + if (ACPI_SUCCESS(status)) { + status = AcpiEvaluateObject(wlsw_handle, "SHRF", NULL, NULL); + if (ACPI_FAILURE(status) && bootverbose) + device_printf(dev, "WLSW.SHRF failed: %s\n", + AcpiFormatException(status)); + } +} + static int acpi_panasonic_sysctl(SYSCTL_HANDLER_ARGS) {