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: 10263 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp644055wru; Mon, 24 Oct 2022 13:43:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5m3/jHSLj8k85xOX3+gPupWrgm3Q5DJFJaCHMu9STV5bxa9qyKGY4spA6/04KGAG3aY8nG X-Received: by 2002:a63:4f12:0:b0:46e:c4e4:f8c7 with SMTP id d18-20020a634f12000000b0046ec4e4f8c7mr14578611pgb.587.1666644225671; Mon, 24 Oct 2022 13:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666644225; cv=none; d=google.com; s=arc-20160816; b=iF++BePnncuhZCFNJbsExMzI1oRpTpKVElX6DvDKcYk21BxzFpFOQB8aefZy9HYPGz p6RgzoFNzSNRAFHsuLTE+up4O6+quKPtPG8ZEwS2eZHRkJ2unrzYphhWEMYrOqWq2K6v BVhh8fqLN9wYJuHuQT9+3EDJ2ghFDdcVrqwYsK0y+cRLwDCRLwJ5rJ4fsGWUE3DoMeyu ++uvFBB1/w94eGBYr05zTiYzwUB0nN0prvU0pUD+wk8UBoD1cD1dr/v7pTcHv5kzIq/+ 2Cp3re48xwsT7ILrbKnxzHzv6Ek0wN0uIum1eHZV1URGIvOIEEOG3x+3ZFouPG1XuR0/ 7UQg== 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=yWlIrQev7tLcJsiOFbKD1yRbzbHxgPdE1+YktLqUbq8=; b=f3hsZRvyhKVAX+HcHORvdlvhu3kEX3u9dUlRTimbClrvSBfp1tGXCQo+2PWa01LwtO 4DkgFCosyMmkyXQNPRc5U4SR8+XsBmPbOI+KwfS93I4uZCif6LScVhlcVjCmrkHU6LI4 T6ut7ml2CNxMQi0m53DVjVtU3cxyh5/x3z4HcjCIT1nQ/u+ZW3dVyDyXvU0EUM8kpsuw mgWwEEaG6cO0hjBmMffTQJQvU+3TEo3xEZ+LBEz9LHEMnhb7+WcwYEAlvefa+wpdhFJ0 t7FsEXiDhKYxZ1gt+11jNij98SG+WpG2qZaizsnk8uvJ/0UVmQxNIlhd4yUI4nqfU6CE RxLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j7XMBlrr; 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 y2-20020a17090a86c200b0020c4fd9306bsi9285473pjv.166.2022.10.24.13.43.28; Mon, 24 Oct 2022 13:43:45 -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=j7XMBlrr; 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 S235013AbiJXUnL (ORCPT + 99 others); Mon, 24 Oct 2022 16:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234921AbiJXUmj (ORCPT ); Mon, 24 Oct 2022 16:42:39 -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 00315B56D5; Mon, 24 Oct 2022 11:50:55 -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 1C87DB81607; Mon, 24 Oct 2022 12:13:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73133C433D7; Mon, 24 Oct 2022 12:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613621; bh=wmy+iPEfdsJK+DXEJ2w1jBmGv7JXyMDV5sPofoS9duo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j7XMBlrr2+VK8ah87oKK5krHbxC8WVQMJFfrH+6H8aZqKnfpNCI/fdlsuOzMqH+eu uP1579G7OwHp0dO7qLw3rKYohNfB/n56cIMbM9hyakbiDEReqroQ5F0S5a2pGYvXhM UCKL10jNHtmScj7xNCX1caP4tH7LtPTbrkXKBXjI= 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 206/255] wifi: rt2x00: correctly set BBP register 86 for MT7620 Date: Mon, 24 Oct 2022 13:31:56 +0200 Message-Id: <20221024113009.890838423@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?1747603135545786958?= X-GMAIL-MSGID: =?utf-8?q?1747603135545786958?= 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 c303d52b6820..32d2528cdd5f 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -4154,7 +4154,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) {