From patchwork Mon Oct 24 11:31:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9168 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp457784wru; Mon, 24 Oct 2022 06:36:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM519lK7XmwX6G6PxzgqiMiEKL+QjRXTD17rxycORB4tk1BBjNvKHUwZD1jKTuzg1102Woyl X-Received: by 2002:a17:907:7ea6:b0:791:81f4:b0e3 with SMTP id qb38-20020a1709077ea600b0079181f4b0e3mr28047574ejc.164.1666618591597; Mon, 24 Oct 2022 06:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618591; cv=none; d=google.com; s=arc-20160816; b=hpeiibpp0LcPA3vZu3RUDzmik+j9j+vdTnCP4q8JDEutwk1xaRJYXM4JsirjF7WCRO ivQaf+YUqKkWhv5iZYxJwydlOaulKM/0262McUlHjw7jbpnEth11CXPq6sVnzVzyi7Hg VzXuECGCOc/Ajc3DFTPoD7txTVN2AQOXCjrUBiqUMws4b1phEJOp+KibYntNFOIo16op ZGWwjMRGLZ2kQQFdIA9Ykzos+jEvaXOwrPxfqL8LJeP0rOfIP3bxoOImrL8c/oLiRGVU CPmbA9g6ObeicnWsb2PzYiq5n4CQAVPGwgRf8C8dAEpfP1V5ZemhyUeKxWl+jnh8Zhas X7jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8IauuaD9ExZX9/dSPZaFTGHyKWBhs9aK7+52XJICDdA=; b=jJusb0QDSf0nMTExXfnUINOkRQAOL/aEk/M9n9YJ6/j/JVPui/T4HfoCw9sjOEbkTk YheVpyfR1M42FvMEOYeGvY3n+sHisWFKuhtAO4uA0jmg2ESFm69fg/V7ha9Mojlh4JSS AeCR3ffO4Hmy99u70jWKjqRQEpZeai/E3mctV+BRuRqwYtuz1cGooce9VGFxr++1Y4Lv IrOz3VyUK7CTJ7V3JHNKWK8gOuYShsYMSQjrGSIUNAF9SaVddygHMGHNYktl3Ifz+4jW qmDp0rt4FKPVxQ+ufp7OAci4JZDFr9I0AFGCXnuKcadJwDf4g5RpNTNZnjuQwTvFINYy EQ5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VXyMCr6g; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a50ec83000000b00461cdfb307fsi2067554edr.487.2022.10.24.06.36.05; Mon, 24 Oct 2022 06:36:31 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VXyMCr6g; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbiJXNbN (ORCPT + 99 others); Mon, 24 Oct 2022 09:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbiJXN1X (ORCPT ); Mon, 24 Oct 2022 09:27:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EFF2AA37C; Mon, 24 Oct 2022 05:31:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D2F4561335; Mon, 24 Oct 2022 12:31:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD8E0C43143; Mon, 24 Oct 2022 12:31:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614678; bh=jK2U0kMit3XifFXgslKElWEhectg9xFFpdtHA6qSl64=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VXyMCr6gRMlkUQcgXR9KdNl+kp493QvveDg4JimgIgWjfoSpJvFOe4Ot6eubiZZpW w6+fbvScQuLFh2PNId+E/XjzImjXoYFGO5jOLeaylbJl4SEVxYGOgrAFWp3aCYsCXS /g1fIuSXVFZAXJMtQo83o46cfEVITIZGmjY1HZrQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Serge Vasilugin , Daniel Golle , Stanislaw Gruszka , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 321/390] wifi: rt2x00: correctly set BBP register 86 for MT7620 Date: Mon, 24 Oct 2022 13:31:58 +0200 Message-Id: <20221024113036.672385626@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747576256242334085?= X-GMAIL-MSGID: =?utf-8?q?1747576256242334085?= From: Daniel Golle [ Upstream commit c9aada64fe6493461127f1522d7e2f01792d2424 ] Instead of 0 set the correct value for BBP register 86 for MT7620. Reported-by: Serge Vasilugin Signed-off-by: Daniel Golle Acked-by: Stanislaw Gruszka Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/257267247ee4fa7ebc6a5d0c4948b3f8119c0d77.1663445157.git.daniel@makrotopia.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index f237fc17dedc..4bdd3a95f2d2 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -4151,7 +4151,10 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, rt2800_bbp_write(rt2x00dev, 62, 0x37 - rt2x00dev->lna_gain); rt2800_bbp_write(rt2x00dev, 63, 0x37 - rt2x00dev->lna_gain); rt2800_bbp_write(rt2x00dev, 64, 0x37 - rt2x00dev->lna_gain); - rt2800_bbp_write(rt2x00dev, 86, 0); + if (rt2x00_rt(rt2x00dev, RT6352)) + rt2800_bbp_write(rt2x00dev, 86, 0x38); + else + rt2800_bbp_write(rt2x00dev, 86, 0); } if (rf->channel <= 14) {