From patchwork Thu Sep 19 13:22:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: En-Wei Wu X-Patchwork-Id: 1987428 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X8bmW1qC7z1y27 for ; Thu, 19 Sep 2024 23:22:51 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1srH7J-0007h2-Pf; Thu, 19 Sep 2024 13:22:41 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1srH7I-0007gj-74 for kernel-team@lists.ubuntu.com; Thu, 19 Sep 2024 13:22:40 +0000 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 4A2053F193 for ; Thu, 19 Sep 2024 13:22:33 +0000 (UTC) Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a8a8308cceaso203475666b.0 for ; Thu, 19 Sep 2024 06:22:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726752152; x=1727356952; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cAYMDy9l48e6WLoGr79mGC0lSHjhllvHpwv/VWY312o=; b=f7s9HGLeFFi4XDTozOT28/3eGED34RVeQQuXkUC8SeEHXwGa7wayFSSfGWZDmYDcsZ q1lxrjtyonEfZhpjn5lVoJaEoNzAH2jL23WkzRilgi6pXLJ1BaMpegZG+nSJpM2C6CuH AvRVJp9wy2cc6Bi1E2BCPqE4whlTZ+DH+KoG5envgs9h2f2/fxTITvf/KSB8DguSVq9j iXxJeMJE1huvWja0wYpk0QNIzd178aODjumPMrxbY9aKUGCEiRplooZQadL0737pvB3W OERgy19kDL92kXsCIsxjW0MH+tYsp/OgsKkwyuak2wfeyaG61UCCduh8nTPXueuN8dNA 5zWw== X-Gm-Message-State: AOJu0YzjRM+HqqcEDS/CL4xBujjKhFOObTNhFVV1sSpFvBl6NlNDjWfP w9ZjgV/f8Jb10AI26+HyPTaCgF4WffZOPXp3qhyZ5OqGXw7B1xmwNTtGX4qEbRg9s4kkiqTdTqO HRzvA3fT/eA3Irf5B/CRyvP9V04Nd5z8DgE4e4f1K78e/cMa6jGBiToCk9k4THL4fwqpF++ubyW Wn0A6Eg+MO3mfY X-Received: by 2002:a17:907:7f8c:b0:a8d:41d8:14ad with SMTP id a640c23a62f3a-a90c1e545dfmr299395366b.29.1726752152533; Thu, 19 Sep 2024 06:22:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSbHQ94FSGImN5dy0RXpNp9ze1rt6u95k+u/d6dugf/ZDIriqrDzLruZSccUwE41vVgiHF8w== X-Received: by 2002:a17:907:7f8c:b0:a8d:41d8:14ad with SMTP id a640c23a62f3a-a90c1e545dfmr299392166b.29.1726752152114; Thu, 19 Sep 2024 06:22:32 -0700 (PDT) Received: from rickywu0421-ThinkPad-X1-Carbon-Gen-11.pool3007.local ([83.68.141.146]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90612b3f6fsm723406266b.107.2024.09.19.06.22.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2024 06:22:31 -0700 (PDT) From: En-Wei Wu To: kernel-team@lists.ubuntu.com Subject: [SRU][U/O][PATCH v3 0/1] rtw89: Support hardware rfkill Date: Thu, 19 Sep 2024 15:22:29 +0200 Message-ID: <20240919132231.302892-1-en-wei.wu@canonical.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2077384 SRU Justification: [Impact] With RTL8851BE and "Control WLAN radio" (in Dell BIOS setting) on, wifi function is not be disabled when we plug in the Ethernet cable. The issue is because the rtw89 driver doesn't have the hardware rfkill mechanism. [Fix] Backport the Realtek patch in linux-next: https://lore.kernel.org/linux-wireless/20240724052626.12774-1-pkshih@realtek.com/T/#m1361ad1d6125d64976677fea4ba2e3aff219d1ad [Test Plan] 1. Enable Control WLAN radio in BIOS setting 2. Boot into OS 2. Plug in Ethernet cable. 3. Check if the WiFi function being HW blocked [Where problems could occur] May disrupt the software rfkill. Kuan-Chung Chen (1): wifi: rtw89: add support for hardware rfkill drivers/net/wireless/realtek/rtw89/core.c | 68 +++++++++++++++++++ drivers/net/wireless/realtek/rtw89/core.h | 9 +++ drivers/net/wireless/realtek/rtw89/mac80211.c | 17 +++++ drivers/net/wireless/realtek/rtw89/reg.h | 24 +++++++ drivers/net/wireless/realtek/rtw89/rtw8851b.c | 11 +++ drivers/net/wireless/realtek/rtw89/rtw8852a.c | 11 +++ drivers/net/wireless/realtek/rtw89/rtw8852b.c | 11 +++ drivers/net/wireless/realtek/rtw89/rtw8852c.c | 11 +++ drivers/net/wireless/realtek/rtw89/rtw8922a.c | 11 +++ 9 files changed, 173 insertions(+)