From patchwork Sat Oct 22 07:27:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1107750wrr; Sat, 22 Oct 2022 01:41:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UyZvV/huETHhWPEiqlRS43fedvCgOjhe+PMus1CDUcdyqtowjv/f3Ug3n3S7PeqE6h2T4 X-Received: by 2002:a17:906:cc0b:b0:78d:f3b9:ab15 with SMTP id ml11-20020a170906cc0b00b0078df3b9ab15mr18948253ejb.367.1666428119348; Sat, 22 Oct 2022 01:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666428119; cv=none; d=google.com; s=arc-20160816; b=XoMnAt1d/RCnwGqta7VbJD3DT+hU3oDUzkera8W7DZz64zXxXfKyBCF+mVtG/iyJU2 u8stlgvpe3Bwih5ZXGFDQgAo9mOiUxEa+xXsncJ2ffXH+cX7mOVc0iL11uGWd324G/3l X0SqmfJ+NcsHSOcpBZg4H2c/uC6TpHC0HKZR4FSj1AUJcsEBetZSFkMudPu2N5CbbEpK Pc4GXUIqGGgNG/bm7YCQQvHOqmYzUa1EdJ2DDO+GsKYTqqY1xHrlDFSz7svuDXDb7hlc 01h4Qp4yel5Q+A0ee+1vSLdavUogIjGsxnX+vb3sT0yaMlVC1c9wuiPx17ojouQmBUGK 7dzA== 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=12t60BSEqGi6TImFsmEUQZ63E90GshRStKCSLZR1eMg=; b=q0dfyUM9JWBE7wkMqtdf5mX+nroUEN1Fu1+s2DT7U+l647N1/duBi+gbp/3pypci99 vpLyZn0ZTkM7LJ79ocly3dohlRY02in9xkOU5Sc4/KsIzsHgrNzqAf2XMSark6O9HZKt TMKUgv5KT8YOovYAa16M3lKj3dfnvLRVRuKwr7HDYgptSIkJITGPq/Ei4ptGfNsyBtJi cjDqryZWDqDRs7oo4XJuf6oPMWXpqa+HliB/DppaUn+rAavuJmXXFhf8dp3yXO+rAf5S CrjffHKF9U1up+ffty6+6/uzccOEXIrCxN/aorMmfPcJQ2kkvnmt+Ae6VbW2E8vdeCkm eiOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WBJrV46x; 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 dd16-20020a1709069b9000b0078e54eda758si19437223ejc.611.2022.10.22.01.41.34; Sat, 22 Oct 2022 01:41:59 -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=WBJrV46x; 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 S234498AbiJVIit (ORCPT + 99 others); Sat, 22 Oct 2022 04:38:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234295AbiJVIer (ORCPT ); Sat, 22 Oct 2022 04:34:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E82C72A4E18; Sat, 22 Oct 2022 01:04:12 -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 88B4160BB5; Sat, 22 Oct 2022 08:03:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FA48C4314D; Sat, 22 Oct 2022 08:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425792; bh=mhQ4G0Nf0x6z4g4ltSMEwBamWtHb7+BVQzPIEGpstb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WBJrV46xqSImKvaNph60+76yYlWDALx3O2XmBqt5SKvZhPetGr1yuGznHCwLaSoL+ x5NsPEGRYyY5jM3EQIhnmGH2cqcrxTg6A+XdDCYpJpnr4AHNhw+H+cdoVU/OjMkcTi pfbRcYLk2MEhj2xIJpmCBbZZGdsvhy9P2Mm/itN8= 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 590/717] wifi: rt2x00: correctly set BBP register 86 for MT7620 Date: Sat, 22 Oct 2022 09:27:49 +0200 Message-Id: <20221022072524.526336846@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?1747376531805656095?= X-GMAIL-MSGID: =?utf-8?q?1747376531805656095?= 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 1efb80a98397..cf3ef44f18f2 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -4164,7 +4164,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) {