Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3990133iog; Tue, 28 Jun 2022 06:59:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ssBTB5+HgNBlsmC2/CqWWxumQbUGpRHe2X+QNhXWIdNv3btsvZQVXYg/UzSj8GbT00+U81 X-Received: by 2002:a17:90b:1b4d:b0:1ec:c42a:7eb5 with SMTP id nv13-20020a17090b1b4d00b001ecc42a7eb5mr22004204pjb.122.1656424767731; Tue, 28 Jun 2022 06:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656424767; cv=none; d=google.com; s=arc-20160816; b=ivIBi7daLPPNcBFY9p0jp92vcLeyuWleFi6A//WAtb1GsY37tYxxToorphN3yYXvWn GZcbHQlSVKxtMQNwfKdVQDDRNnkhIGNR2KnIhifxTvudxxgsJLc8+MVPafkGJBQM0XjD KEGPQP4MhBF1q6cexei1Tydo3nsHFeIdTrdTOho3XY87VOGQBsi+rpaGd+4pLVSGwEsO oYFsVQblsuilW6UQGklrTAkD6MoNE6gCbBuUGmP22qNrD+QKd305jmV7HPAQ40YzJj9n cjh5BlVfrvhsbXPPAv3QQTq+S7BW/tcmg3AtK4HrMYIz7LA0zbWoBXYQibsIk+H0PSKP umdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=MFNCFbZXLV0eyUiM1n7RmrLz+AO7kMiOY+iuYaJa97I=; b=k07sI/88SAvckSoFkxVkHzgyUw7Ogej9NC/viM/mGBNgzU8AcgFf6ZlNjYLvI0Q3an dpSv25zYvEiZR1sIZJWiV4ySXPgSR5sz7dUSN/uXr6+odEiZaJ7GX1YpWolzOwuEwv1c JOob4vPEzduo0+nxA5gKoBn/WepbxpyvpLRNcSeknDCyKvsjS0mpBWrthXH5+k2GGbuK lvr4v1YjdVyeOaaMRFZBZNvOxUqK3yWU+QiDQiBWmOgHq01FRLBY6eossWunB+ii01qD 2wt6LGGP6ELSx9B1SFfWjVYUxva7u4X5vzai32RlssvH3dn28v0UcdsWU6lFyX9usK3C wtig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iw19-20020a170903045300b0015cdeea3a8dsi14844071plb.374.2022.06.28.06.59.15; Tue, 28 Jun 2022 06:59:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346792AbiF1No7 (ORCPT + 99 others); Tue, 28 Jun 2022 09:44:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346866AbiF1Noe (ORCPT ); Tue, 28 Jun 2022 09:44:34 -0400 Received: from smtpproxy21.qq.com (smtpbg703.qq.com [203.205.195.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6402A966 for ; Tue, 28 Jun 2022 06:44:32 -0700 (PDT) X-QQ-mid: bizesmtp64t1656423848tkj4xcfq Received: from localhost.localdomain ( [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 28 Jun 2022 21:44:06 +0800 (CST) X-QQ-SSF: 01400000002000G0S000C00A0000000 X-QQ-FEAT: HY+AX7pyI8QB7szTDhJx3uiSVjuJ5OspBHsfTn0MCzfyhIQ9N1kZ8V6ke/uZs RGk6BQ9ePYIwXsaob6QIup/iGHvfKwKLE76nvn1tPcNov29/n0SDQ2jPxmyzWzm8nYD14aE ikUa4VLDZJCgCO/eMe+XvAz7mj1xgqLzpVvPYUQtnRZ98R2Y4LRyUQHDvhWBhG7TGPeZ4R+ 1gv5/H5sRbLkUnZG7wDHWeo7hOT9uzrSbXaZd8v2BlyBJKfIT8Z+fH5hgZCUHdFKJ3eNoMI zZpSDn3Nc3a6mpT+txDPktGkQbPzVRjvJy7GBLRHo5PaDBQg+lvuJvy77fXq+LLzyd9ptJB dnEQbkv8Bsn1QIS4ZSkI3fFw4JxeNe8HV0aShkQVXpZBPfchG2KxhdbO06QuI4T8fso/deC X-QQ-GoodBg: 2 From: Meng Tang To: stable@vger.kernel.org, tony0620emma@gmail.com, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Meng Tang , Ping-Ke Shih , masterzorag , Larry Finger , Kalle Valo Subject: [PATCH 5.10 v2 3/3] commit e109e3617e5d ("rtw88: rtw8821c: enable rfe 6 devices") Date: Tue, 28 Jun 2022 21:43:51 +0800 Message-Id: <20220628134351.4182-3-tangmeng@uniontech.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220628134351.4182-1-tangmeng@uniontech.com> References: <20220628134351.4182-1-tangmeng@uniontech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign3 X-QQ-Bgrelay: 1 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,PDS_BTC_ID, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These commits can fix the problem of wifi not loading properly. At least in my 5.10 kernel environment, the following error message is reported: rtw_8821ce 0000:01:00.0: rfe 6 isn't supported rtw_8821ce 0000:01:00.0: failed to setup chip efuse info rtw_8821ce 0000:01:00.0: failed to setup chip information so I think that 5.10 need to merge these commits. The patch 1/3 and patch 2/3 need to be merged synchronously, otherwise it will cause OE and then kernel exception. Ping-Ke Shih answered[1] a question for a user about an rtl8821ce device that reported RFE 6, which the driver did not support. Ping-Ke suggested a possible fix, but the user never reported back. A second user discovered the above thread and tested the proposed fix. Accordingly, I am pushing this change, even though I am not the author. [1] https://lore.kernel.org/linux-wireless/3f5e2f6eac344316b5dd518ebfea2f95@realtek.com/ Signed-off-by: Ping-Ke Shih Reported-and-tested-by: masterzorag Signed-off-by: Larry Finger Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220107024739.20967-1-Larry.Finger@lwfinger.net Signed-off-by: Meng Tang --- drivers/net/wireless/realtek/rtw88/rtw8821c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8821c.c b/drivers/net/wireless/realtek/rtw88/rtw8821c.c index 9c8fbc96f536..cbb4c761c5cb 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8821c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8821c.c @@ -1468,6 +1468,7 @@ static const struct rtw_rfe_def rtw8821c_rfe_defs[] = { [0] = RTW_DEF_RFE(8821c, 0, 0), [2] = RTW_DEF_RFE_EXT(8821c, 0, 0, 2), [4] = RTW_DEF_RFE_EXT(8821c, 0, 0, 2), + [6] = RTW_DEF_RFE(8821c, 0, 0), }; static struct rtw_hw_reg rtw8821c_dig[] = { -- 2.20.1