From patchwork Mon Oct 24 11:31:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp545123wru; Mon, 24 Oct 2022 09:33:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4krDpLP4V7lNA+M5J6dVrAFVvtkgPoDggEKHoiU67JzPvJ/BaNRvDhmmgFqTMVqmvKS9nV X-Received: by 2002:a17:907:948f:b0:7a7:5fc8:909 with SMTP id dm15-20020a170907948f00b007a75fc80909mr6013151ejc.658.1666629221697; Mon, 24 Oct 2022 09:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666629221; cv=none; d=google.com; s=arc-20160816; b=nI/9uuSmET3ke7f+j54x1/EaSCiYJ6c00Yqacaiuqj/XrQxfzP6XCphzVlPhATq8rn CpnAUVvkp3W2i8zES0Km7Dmhmnip/FDTTslKx8FewvAVey7GKE7PGMqgKiCyBZRnN4QB DyNiWlrwc6x+BF0udLCtYpTM4GiJtvBUo8H/FwoSDCO43owIEdzWub6m04rmyDbj3WWu +ATcC61DU4N7+b2+0OJWG6kZlLW3ztu88aL42eRfCUtqd4YO5NZpUWjzTpc5kKML2BnB Eo1dAMrIq2qHknJKWU4tK8K4qb0X31n+LRUzPqMiW7qnth1Iz5klG2egS3opwt+5zXw5 eUzg== 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=2INU/VeavexsNPVc7654RiMaGi+6HoK7yaRySQ4nmys=; b=Gf6A5a7F2UNC1o3AvCJYmwqKYJNpsIaY3PEpzvBLhQJCcIPseqrH5Zjr8nk47DRogZ yVopXUDSj2cdCP0Ek5ce/TYo/R4dMVBFnv28rn463Jlz08TWB3ZegMGKcxC38/UCRai0 OhHnJvwpLpAqJORK4souXl24Cv8tyN54TaUySUIHxlVTizCo0Q+ckkfBUm6Q/xRi2Tia JpuGELTu8maVIpxMFlxMOfwWEs4qygm81I4nRfAmD2cnNsfSVmt86+4rWk/1I05ocUwk YMdfTu8Is/z89OREgvfoPWN0hx2iua3mllUvM843l+PoKnttMDWnG9uVi9pobk0JsQni PtoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hlSk5fZn; 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 hs36-20020a1709073ea400b0078e27ef9510si141135ejc.747.2022.10.24.09.33.18; Mon, 24 Oct 2022 09:33:41 -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=hlSk5fZn; 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 S233366AbiJXQQt (ORCPT + 99 others); Mon, 24 Oct 2022 12:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234723AbiJXQPH (ORCPT ); Mon, 24 Oct 2022 12:15:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1152419023; Mon, 24 Oct 2022 08:02:52 -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 4A37CB8160D; Mon, 24 Oct 2022 12:13:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95B13C433C1; Mon, 24 Oct 2022 12:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613613; bh=4tiZo8G5eXP4COk8VAfglXey3elPrZGGdqNUfwvzuq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hlSk5fZnRIvlwM8F0hpinjxAJ937snNPcMwiQMYrvgBmpiF0Kp+KUpQmcZiGWYHa1 Gb1RSb1F/ooenaunAdKEc/q149VGWVochG6lJQGVIbsLaPF9X2LcXsGVjOTid3knsh SI0DbjBrYQGeBCo3xQJLgsjrFbxSPr8SildBmq3M= 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.4 204/255] wifi: rt2x00: set VGC gain for both chains of MT7620 Date: Mon, 24 Oct 2022 13:31:54 +0200 Message-Id: <20221024113009.816394402@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113002.471093005@linuxfoundation.org> References: <20221024113002.471093005@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?1747587402566509659?= X-GMAIL-MSGID: =?utf-8?q?1747587402566509659?= 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 20491ff6bb76..ab0d673253f0 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -5629,7 +5629,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)) {