From patchwork Sat Oct 22 07:27:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1107615wrr; Sat, 22 Oct 2022 01:41:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4SJaX61fBg8OgkT7zA6w1QL4N5FUDJIl0PWabA9bFqS1FUUm13gH0mF0M/Wi9QSCz9PEHo X-Received: by 2002:a17:906:8473:b0:77b:efa8:50e4 with SMTP id hx19-20020a170906847300b0077befa850e4mr18943690ejc.250.1666428091768; Sat, 22 Oct 2022 01:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666428091; cv=none; d=google.com; s=arc-20160816; b=IaDnozJFhbJTBUaZp1Z4jQAkZR3MlgErpd5U6MLqZemI48suTYkekzW251G56/NmeI S+nLnu5ltTwCnVBx5eUwapaRGbgl2CehmFlSPdocNB8SEBs+VkuBJeDq86kmWz++6db1 6dIl0MBwT7AopWW2/ptSSOKNJEmP0jaVrBL8EPCX7WdyW50wiRehn4Xtm0iX+TpiZ76R WM2T+0kZvoI/PQuPvUI3HNafc6Wd8TSEoW09cDtbFEU04Mxglj2zezBTs3/yCYU7sc6i 7d859M6y5eAh2SaC4K44PNBCg7dpwEok0v0GmStsWl0EyqKpBaUTAR1aKHHa2k0RZagg Na7Q== 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=YovZNANtpBrTthKQIKX+OeXDPcUMUvBF8a+sQjYAwlg=; b=IYIfI0oLNJfpPbFyUuRacnPHnfSXI08SbaQVtD0kP0pgO+3qcihWv5J6/YtuDuzbNe Rnh7QQq1cYVaUnG6hsBWaMGgTbg1/hDmAeZ71kfVeDfYGqzRziLnM5zfQWBP0LZDS9L3 68hXRAetiZfIRfxE0FntYAJuT7171ttXeIr3z/1PCPe0XklcLXHgELTNGape29uf5obz G+IaKpwEUQHayCivgNGKEi1+64SCiZnm5DsN1fwJv64ZKfIEiDmj3twsMnt92K8cdCD4 veS2O6n8W1NKMACURlT9QrjREwUKT7AySIu5t3Uwy/mftrgGEGdzQDr1C2beKlqHrWXk cApw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JqBqnZ1U; 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 b13-20020a056402084d00b0045c98bb5359si27887207edz.590.2022.10.22.01.41.06; Sat, 22 Oct 2022 01:41: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=JqBqnZ1U; 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 S234169AbiJVIeQ (ORCPT + 99 others); Sat, 22 Oct 2022 04:34:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234360AbiJVIae (ORCPT ); Sat, 22 Oct 2022 04:30:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1C2F981DB; Sat, 22 Oct 2022 01:02:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2324DB82E1E; Sat, 22 Oct 2022 08:02:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5961FC433C1; Sat, 22 Oct 2022 08:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425725; bh=3ShDxGhyePnM87c+choxm1LMKSGJtavEgMGFhBuaV7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JqBqnZ1UGZWPsuRn8oNOD0JoqI5bBN5ihyFYQMlpZmN02i2EzwEcxH7BWbOjlsiZg DvEqWku2zEWfNV5Cz+7Kwv7MomQlVOd5MUS2EyRXQiHvm+UbqEztDBflPG8labf2xz FyTof6i1B5lQ4u+RC+fz2GfgH9JlTU+XkNEHd9t0= 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.19 588/717] wifi: rt2x00: set VGC gain for both chains of MT7620 Date: Sat, 22 Oct 2022 09:27:47 +0200 Message-Id: <20221022072524.443299385@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747376502481633965?= X-GMAIL-MSGID: =?utf-8?q?1747376502481633965?= 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 854637b1db49..c8fd4a1f9ed1 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -5645,7 +5645,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)) {