Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp886566rwi; Wed, 19 Oct 2022 04:19:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vb7sz0ir4HlqPw90fTpx+ninoiJbeQ7MsSB7FVg9et9FgZo/dzuGTJuxBI21uJpwFSD1I X-Received: by 2002:a17:902:db0b:b0:185:51cc:811a with SMTP id m11-20020a170902db0b00b0018551cc811amr7901317plx.85.1666178364000; Wed, 19 Oct 2022 04:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178363; cv=none; d=google.com; s=arc-20160816; b=VDIO8BtfjcqEWab5Sg2yp7M8JAR8D5uK4pt7Dw0PvsJOpYGkiFbGUBTpsqqfb65gsE //IlTEFUyG0Ghwfxp8E95CQkYCdNyBJAImAIt8bir0OSXksX86HETWs0M3/ELYu9qsa9 3iUzsvdXcFDEgymaRECqCIEk+IGuR22CLQgHoHpcwkGhHK3kR0FnxoKO7DbkmuuZB1TV T9EX5GGdRhzZnBkT1FI2ZMzZP2KPKiSdnAGi6urO18t1NnwwgKSOJOtWbRKf0veAjqqC kIvJiAeykcM/o9/hQN+lPNV7hWsVG7cZ3f+r240hyemt7J2yOTHxYoGxPaQQf10aJqoY WWdw== 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 Return-Path: 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.19.11; Wed, 19 Oct 2022 04:19:23 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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) { -- 2.35.1