From patchwork Mon Oct 24 11:31:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9160 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp457785wru; Mon, 24 Oct 2022 06:36:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7tcPUfgr8M3Gu/1XAinJ36w6kovd1vJqwcmyU2IN+KzjYCSoW1tDvxYLv+WTKNqnGtTlMQ X-Received: by 2002:a17:907:7639:b0:79f:d1dd:2f86 with SMTP id jy25-20020a170907763900b0079fd1dd2f86mr11570491ejc.586.1666618591641; 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=Oe/nXI5uY7XjL8FWcLgr13aVAWzpbScoT0lJVWmIvltMmf6GUuszCzwsaUu7ISel+L Zy1UmsY/MQbQv07as8TEobMESQagCAZdSdfBtf8Av19HXSx+GCBK0v5mmmjm6oSEKiEh TF7q2OWRitVjySTmkgJ5bbcA5W1afVvEXSf+95d4N+TNFr6K8XMRXtVYPrTJWgGxcTz/ ApSPys00P6DHYH2rXg87aBJ5gmxZ8UfiB/EmS47trWm957SDUd5NxUe6pp3MEBwa8rwo o5r29JVpxpoAtRimNxH1O7klglz9/NMqQ6qAaTJf7TStEpCZPv6Re0OV96eXOO0XffC0 w28w== 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=8AaY3RDkfMCbtnFDVF3LuZ85G3FSsvN0woVS55VBjeg=; b=aXSTYzMKNTInKL0XMxTv4z+lSpzRMbmhpQYMqKHjbqFswXVrNLPZdCSrevE6zkWgZf PHTuTS2ecIsOlssV/xSs51b+sKlZN1wEaBxDzgCKqaUpfgopUvXMx1sZ9s/UG3e0Sq0B Gc/C1dO6/scWNMau9RAoEiA2cCfczmzd1X33jFDjfqeWqfhvz9Ar9gvsBpVNy7j2b5Z0 WBUZrYzDLDX/g67HWC4aTFkFNFBZwZxrZsndEUoFkP3FpCw907sT/B/ruOFh5hgsqRrp 5ukPCeEkf0KCsu9WoopaGnvwmJhRHTo5pvia9TYL+nlDfSXF0F0zPOMS4lrQ2f2Ralxc BHTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UvmAVbmM; 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 nb38-20020a1709071ca600b00773db351c39si30475481ejc.64.2022.10.24.06.36.04; 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=UvmAVbmM; 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 S231348AbiJXNbS (ORCPT + 99 others); Mon, 24 Oct 2022 09:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbiJXN10 (ORCPT ); Mon, 24 Oct 2022 09:27:26 -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 3411B2EF4B; Mon, 24 Oct 2022 05:31:38 -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 879276132F; Mon, 24 Oct 2022 12:31:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98522C433D6; Mon, 24 Oct 2022 12:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614673; bh=Fn1K+X/+sml9GeVaAfUJeFE3H7qKf+y8us/IxIyghng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UvmAVbmMn8xrUq8cZmNBCy5cHIUz0kbmMzGic0HT2QZOQCrbOrhJYRd5voE3hIJCB em7db+mdICEPEjkDcAahGNVMPiau5/tmXGer4wpf4Of9x2n7G7mrM1E+nsgnIU94Cq sQ3ozG/P/MtKtMMxxCti9LElXDipRKxN8M4+8Ayk= 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 319/390] wifi: rt2x00: set VGC gain for both chains of MT7620 Date: Mon, 24 Oct 2022 13:31:56 +0200 Message-Id: <20221024113036.573682550@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?1747576256257534850?= X-GMAIL-MSGID: =?utf-8?q?1747576256257534850?= From: Daniel Golle [ Upstream commit 0e09768c085709e10ece3b68f6ac921d3f6a9caa ] Set bbp66 for all chains of the 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/29e161397e5c9d9399da0fe87d44458aa2b90a78.1663445157.git.daniel@makrotopia.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 327f19cae4d7..94e5c3c373ba 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -5626,7 +5626,8 @@ static inline void rt2800_set_vgc(struct rt2x00_dev *rt2x00dev, if (qual->vgc_level != vgc_level) { if (rt2x00_rt(rt2x00dev, RT3572) || rt2x00_rt(rt2x00dev, RT3593) || - rt2x00_rt(rt2x00dev, RT3883)) { + rt2x00_rt(rt2x00dev, RT3883) || + rt2x00_rt(rt2x00dev, RT6352)) { rt2800_bbp_write_with_rx_chain(rt2x00dev, 66, vgc_level); } else if (rt2x00_rt(rt2x00dev, RT5592)) {