From patchwork Fri Jul 14 15:09:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiji Yang X-Patchwork-Id: 1807860 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=h5zIsT3g; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=AHxAbUS/; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R2Zj7464mz20bY for ; Sat, 15 Jul 2023 01:12:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wrSuiA6shhk7XaYDv21fTdPh9VI0GuKsa+OjEnWzRWg=; b=h5zIsT3gi1hWlY qyLZUBJs55ZMfFJJ9qSdznhKjhcI+7gYEbCylnl2ZCm4CRNXPwe9o6/Hmc0KMipwkH9APOpG96cO7 Lhntu4+xuMRwBgxSgp1zLZqnXEOfjRUZ80uyWNNU9IfYYtaAA17U7AX5n9BkfFciDHD9Ly/k7oRYy nkMKfDclinQ5Y6CTx3ETWpYczvlCneYQ/RxDVYOBTcEp7e0BCsGBqDeR4GD9aTvVeymi75D9gbbEX 2wJbRDjugkCzhL3qBk23M1CjT2onTfniGSaCrhrRPGDml8Zm2a7vNoZFLKbVo9eO4g2EqA0WdAn9r 3DtgreWG8kSUDvssxvcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qKKR2-006U2M-0J; Fri, 14 Jul 2023 15:10:20 +0000 Received: from mail-os0jpn01olkn20801.outbound.protection.outlook.com ([2a01:111:f403:700c::801] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qKKQx-006U1I-2l for openwrt-devel@lists.openwrt.org; Fri, 14 Jul 2023 15:10:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f9ZQcu4OZtJ/r+Q56KVRUPm07IGuobqJG30YfC6ilUtinzpVZlVCX/mmsjqZUK0kzQg+AfUMcj8hZsM+oTuOX42ANZXotpp+J9Q27UGXd+BjVE3OC36xB3RshcohjkBXuuru0qWd5lHoYre7yWKZKVc/LVNeZ6GO+5LQuKeyrGz9hSah6T0r90RfUC5/t6/sT2rfPsaoWZjk40QojSSxvJ4xX4HpdJCI2HMX47+wceWP0/xTmWsKn+8LSSz89KqF72Tll6YvVMwkWHesBP/A6XRHGFxBMj5SuKS552/16+v8xJswcXKJ2Ibfl5godV+VWYb8+iTzEpqPyOhgw+e8Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YOs7vz3XOiHhnPksTnYjPMWQfTAuTncOFfullET37dQ=; b=I2E2wWPGrDU8vcmhXvW5sTWj1qzXeP0Yt7RRL3VC7P7p25Him23EztCjxmuzmDJW2uwZhCbwvLPnF/cNMh2/pmXaLnRLGYm8KGnd/7vlFugHc86PLLpgqVDMyZvW1rMTL5OINcFGST3KE23qlTsyToKR4VWXWrgwOCqTOC5VhfCrmN0EeXhQNKeCNpOmJ5+1gTsOLdkmQ+HfHOZ0yI5Na1MM25VtgGxshdL3JHoz771bn/zPRBAHYLZx+DwSjD3jVfSYDoeHVIYB3Gv1QAq+O9A+ZKiwRN3F4qvmQ9Ndd8hbST250WsLkJs+KVKzCJysreab7IEdCd7MEUJUnHFSBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YOs7vz3XOiHhnPksTnYjPMWQfTAuTncOFfullET37dQ=; b=AHxAbUS/LnHfF5fdkys44O8kGRd8ganSMENMPuh+aF+X73zainbYF1KXcZQwrIc21kNlm6btCtei4n3ccU6oQLwFZ+IP+1pZH+Mhsyo4Nz8gHDXwW/weleFHonEv3exTzk0Fq/930NYAoOEXaBWQVOegm5cIKTvFZf8IJfcR4M9inrmdVSNCOzuTT5eZnmFti63saWizxbs766rX+cq7uga9s6bV6zTC0Rx2aS2y1O4D/fC90iHgy/6WzFFJlk0RUuzT3N4pP9mG3J0Mdy3VjigymzK1u8w39F1AxnFd2feEk1xCVZenKbHC8T585fZ0Vt0+npHPaGFGGMG9s4yFxQ== Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) by TYCP286MB1914.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.27; Fri, 14 Jul 2023 15:10:09 +0000 Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::318f:1f08:7a6c:756e]) by TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::318f:1f08:7a6c:756e%3]) with mapi id 15.20.6588.027; Fri, 14 Jul 2023 15:10:09 +0000 From: Shiji Yang To: openwrt-devel@lists.openwrt.org Cc: Shiji Yang Subject: [PATCH] ath79: increase the rfkill debounce interval for TP-Link Archer C7 v2 Date: Fri, 14 Jul 2023 23:09:55 +0800 Message-ID: X-Mailer: git-send-email 2.30.2 X-TMN: [qt8QKLT86gHgfJkVpZzSgxckJZ6A2/qRgwtAxxOZo0Y=] X-ClientProxiedBy: TYAPR01CA0077.jpnprd01.prod.outlook.com (2603:1096:404:2c::17) To TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) X-Microsoft-Original-Message-ID: <20230714150955.1254-1-yangshiji66@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0315:EE_|TYCP286MB1914:EE_ X-MS-Office365-Filtering-Correlation-Id: a4ef9670-18a7-41e2-d8cf-08db847c69f2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: daHBBt3XDZfka4M/AtkHP201LQn/HpO8SoYpbyfkEN/+imq2esRLO/9QdLeyXG7ZUlrP8857FX51DqKH1XF1JfTkU6d20rtSXJZcm5aD015caKHQumX15jr2cRpaZDngD/mSOx99F9nvpQpXDtgVSrlQ+HtTEmOBvilHPnJDVXFma5MFs55eBUeQknMVFikJIbIK8+XwhV0bguxpkd8IV4TlDxw1z8cfcYmFgzJ7xAuIgwfu7N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FGbPA0k6fzTUvaNPW6NOq9xnG42pLQ+QU9gRpj4C8yL3xeBh5SKfOhDPNcU5cLxHS2GaNdB0JeRS3PlzmF5FrUQcDjp426rd2UzT1Mp+sAAZRb/jN2+7sbzG/ieoYlb6et4aZfKo3/MzGX7mm60Wn+ZmJTARCBqVHIfYEF1NwfwCao3GI8VcxE3KsOjvqkOV7vZq0rf/g68Cb2MKL5p7KgGsnU+h3yksUocIyqGWBgSF+VLu4xoHwmmM3F1ftsAP9RWYadmeex2qZ3rk6NK1I7+QhySmFV3cPgqxZLAkBZfimjakOIBtopsu33oUutcB73Es7tvQ+rySPuh7fwMuBLiJWItLb8JmGzb0+2wku29kSpMxJN6xl5YxmeVo3X2QIjcmLjfOgLqqYrYkf/3EcjCEndyr06JETjHXxX4YEiqTdgGsswy+Oy/3oM3sKlj8a0YCqnN1vrjMY6xK0TYiHHLVkhh6tLj3YBmTeu3tYVtRJwXCNDJJ/vHfPhwkAKGW+aQCl3TCGfZFDE0ZgaCR5/vVOKqMdA3t+xAXpNZcfYyIFJUCtpAabSnG2aClodOqhuc= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4ef9670-18a7-41e2-d8cf-08db847c69f2 X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2023 15:10:09.6993 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB1914 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230714_081015_925356_5AF3107B X-CRM114-Status: UNSURE ( 8.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Shiji Yang Due to circuit issue or silicon defect, sometimes the WiFi switch button of the Archer C7 v2 can be accidentally triggered multiple times in one second. This will cause WiFi to be unexpectedly shut do [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [yangshiji66[at]outlook.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [yangshiji66[at]outlook.com] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Shiji Yang Due to circuit issue or silicon defect, sometimes the WiFi switch button of the Archer C7 v2 can be accidentally triggered multiple times in one second. This will cause WiFi to be unexpectedly shut down and trigger 'irq 23: nobody cared'[1] warning. Increasing the key debounce interval to 1000 ms can fix this issue. This patch also add the missing rfkill key label. [1] Warning Log: ``` [87765.218511] irq 23: nobody cared (try booting with the "irqpoll" option) [87765.225331] CPU: 0 PID: 317 Comm: irq/23-keys Not tainted 5.15.118 #0 ... [87765.486246] handlers: [87765.488543] [<85257547>] 0x800c29a0 threaded [<5c6328a2>] 0x80ffe0b8 [gpio_button_hotplug@4cf73d00+0x1a00] [87765.498364] Disabling IRQ #23 ``` Fixes: https://github.com/openwrt/openwrt/issues/13010 Fixes: https://github.com/openwrt/openwrt/issues/12167 Fixes: https://github.com/openwrt/openwrt/issues/11191 Fixes: https://github.com/openwrt/openwrt/issues/7835 Tested-by: Hans Hasert Signed-off-by: Shiji Yang --- target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts b/target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts index b7ac902003..1b860dbf2d 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts @@ -13,10 +13,11 @@ &keys { rfkill { + label = "rfkill"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; linux,code = ; linux,input-type = ; - debounce-interval = <60>; + debounce-interval = <1000>; }; };