From patchwork Wed Oct 19 08:33:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp265061wrs; Wed, 19 Oct 2022 04:21:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7t7G7y0aTCKOIbVVKCrf1/JGw6hAKy0RQ+pRaz0WlCnv7Qcfow4kITqm8TogDRF3bYX5ve X-Received: by 2002:a05:6402:5206:b0:45d:88f:4f00 with SMTP id s6-20020a056402520600b0045d088f4f00mr6994509edd.130.1666178493351; Wed, 19 Oct 2022 04:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178493; cv=none; d=google.com; s=arc-20160816; b=Gp2dfvogMTum1qO1gLc2tCMcrINJQTb0wt6urL0vyqrQx7bAn/nSCp5MPxyktqfRao nGQ2S1P+vOpeL/bptdD08VELNRKXYdwGjt3LXgi2Ucb5PSE8ZVz1v6s87B/CezrCd8Hl 0l/rcAZshEF9SmhyQlT0jU1yCeq+AGb6T45MvPOVoigy2nMIhUlq3JUTNFaZU3G77+le 2x1hUCeeRqf84q6IGHrPSkEW1wbJis2/xHzlgKRfC+xMgj71wsaHsWKlwYgOoukh9f2f vDc5o2O0NbB70X6PJqyrBZxFiNQX6FdBE/NwkG+oGJTZCmQEaYEMUPFJlTG3xpm9fZgo ntGQ== 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=7M9/MteVM8rw1Pl+651l0LPRBPxzZyIGhlIRFtMaDMg=; b=HC+6cN0nU1vGJVE5JD5nftRhxtsWcyfm+uht9UK1gLHJTvBJDd5ILWWwAEUknUZyBb 0rz9U8jjqjgkfNV+TQb5aRkD2hwhx1zz5APCoPHHrEtCHnI01ZrXcPNg6PEuYp2UGqg5 +Hv5/blg4DSGgvhxyws7TyIL8sOIqFwMLnFEa5ARU1XlnMp/Yad8I/hM+tlxyX5cIM+a soq6jLjnaxjDX6A2Dedmh+2+YhDbVxuElu+a9uRa3ynMsXPhlaLfMUm4JwcYqcxPUKMU cMthioQ1eHydW58px/aM23C7grpy8hJezGdK1GST2RQkFz36IFNoDab3lca730awWR2u iWlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eg60sjGk; 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 hs40-20020a1709073ea800b0078df2f22f80si14830710ejc.647.2022.10.19.04.21.02; Wed, 19 Oct 2022 04:21:33 -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=eg60sjGk; 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 S229945AbiJSLJ5 (ORCPT + 99 others); Wed, 19 Oct 2022 07:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232803AbiJSLIw (ORCPT ); Wed, 19 Oct 2022 07:08:52 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D917E32DBE; Wed, 19 Oct 2022 03:37:27 -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 sin.source.kernel.org (Postfix) with ESMTPS id B4D3FCE21A1; Wed, 19 Oct 2022 09:09:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5729C433D6; Wed, 19 Oct 2022 09:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170598; bh=OgQjpOolkW7jauhX45LnxD4niW+zPKmRX1OZN/8owKE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eg60sjGkPdfNsgoWhDI6+M/S8uWXyA2Oe9YOiL9cvQHNmgUt5rpTKnQkJ1MprRiFZ +164VuDvEbv7/IuggMLG4n9OXoQWIWNhEi8rrTD3ui1vHBIEocnYV9A6c1YTRe0F8f c4FW11ibS4S+rd9OjpXLbh0qdfNVcoGicDsUh2dM= 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 6.0 716/862] wifi: rt2x00: set VGC gain for both chains of MT7620 Date: Wed, 19 Oct 2022 10:33:23 +0200 Message-Id: <20221019083321.575106496@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747114779792390147?= X-GMAIL-MSGID: =?utf-8?q?1747114779792390147?= 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 5e7bca935dd4..fec85db7dbc7 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)) {