From patchwork Wed Oct 19 08:33:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5189 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp263880wrs; Wed, 19 Oct 2022 04:18:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7OE0RcYMsoaNyqrf/L+X9rXq1W5axJJsV5KP0v0027Ix9vRQ2oV3ZwQDdzGeI2zF6LEUi5 X-Received: by 2002:a17:902:c209:b0:17f:7da5:b884 with SMTP id 9-20020a170902c20900b0017f7da5b884mr7918796pll.26.1666178336302; Wed, 19 Oct 2022 04:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178336; cv=none; d=google.com; s=arc-20160816; b=YvVBEh2pm8THrPnwIP+BrFF+WLbjb/6EV0WLECOx2D4MSmPpCoCKXm87La9ykBP18u Dr3DN8KkcDqq7gP1ARP758/qo9Qp5KGAulIv8McXUWHuOd2Nx+8Cyv86FIsPRBfoDhDT YLL9+N8Jh0+ErfiMJLVlvBRbKPxn5qU+UajE//KrkJJbxVbl2X1pQfl0UPpnF8IVsvw2 jfd+KbI0g2ko4xGoGGdBX7cyOrCJKnDM8XXDoEIbF13Q2cVmWJGzPzAbkJWHtvvn8Fs1 n0JZOVuHMtYllX7YbtujBXwlx3Rap+pEGnzOpyyTS6imbW6ByYEkjjCsbIoiPrEwBUCt vphg== 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=vvOhcqCmSA9yyygbd0mmKNgRuP2F4IXCtetDuXReK20=; b=Kh5+9HQIr2MrMazLoTh0AOut5IyRSxT03dB/rggIF4TJHa61nFKvXNP46suFEKjevi 6fpa6V8qSCv6q5XG3lD0uMdwB95mjHC19ACuddxBbyhoF9ZI7IQo7KNYJxgrac4ipWgD ohPs0ELLHf5dNQo0fOyZ68XshCS3rUecdm0ta88jBqBNqg4TjizM1ARMBdY/M1w4dvxc rTkqnQuLhHMcHx9hjp9KiVEOiS1MpzdsyZ30SdA13jg779S7+WOJwkhUpe1bh8mmyJ8N I7tpWOfyKic0hTH/p0uErISTekYcnujmPhzagPCB6PJv+9Bb7wHBtZLkzjvH5b6RGKyf tCow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tTLgkvbs; 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 bf6-20020a170902b90600b00176b26d519dsi16690208plb.350.2022.10.19.04.18.38; Wed, 19 Oct 2022 04:18:56 -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=tTLgkvbs; 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 S233589AbiJSLFe (ORCPT + 99 others); Wed, 19 Oct 2022 07:05:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234872AbiJSLEJ (ORCPT ); Wed, 19 Oct 2022 07:04:09 -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 798F59DDB2; Wed, 19 Oct 2022 03:33:26 -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 91C3BB824B0; Wed, 19 Oct 2022 09:10:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4148C433D6; Wed, 19 Oct 2022 09:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170603; bh=rfhGV7N9C6ZVl3JruPAcA6LKfJ3cyhGgcnuyB098JMM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tTLgkvbstUV8N5ULN7WFEghY+nTY4q47uNeWwaB+Db5bISgWOLo1fDIUoc2ryRIro /MCkNlTbYHZYVMhhnhs0X3g4mzuBI+kYJ8br7XQvuvhB5ROxR5tdN+HWzyqz2qEZl3 IVZ0L/IhVFCyZHbehfClw2sp1HMEOA2s2XlMizn8= 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 718/862] wifi: rt2x00: correctly set BBP register 86 for MT7620 Date: Wed, 19 Oct 2022 10:33:25 +0200 Message-Id: <20221019083321.671530813@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?1747114615146741791?= X-GMAIL-MSGID: =?utf-8?q?1747114615146741791?= 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 b30b062243bb..1a9e27a6d636 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) {