From patchwork Mon Oct 24 11:31:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp445963wru; Mon, 24 Oct 2022 06:13:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6F4ysi7dx1XpdQiYgwyPylKqBot+2hbofnJ2ijcy98ccK6hl0FK1nj3LC/503l26YP13FP X-Received: by 2002:a17:90a:4d04:b0:212:ee1c:b0ec with SMTP id c4-20020a17090a4d0400b00212ee1cb0ecmr11836707pjg.66.1666617207767; Mon, 24 Oct 2022 06:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666617207; cv=none; d=google.com; s=arc-20160816; b=pI//ppLp87375XHqjjUwO3tFak0DGdn0empKRhnZv7LT4BVMKIneUVJQKsdptM3lGV Hin5RtECi91nzEEQ6bEn0QVTMIwKiJa1u9vb3O5wKc7O4fH6di4kUDMMFpiDK1yab2W2 pVCId5QLTN7bUHyx6rNdLFlPd2ESJJdjTi0O4wN+p7i9AU9eIWfZj8rVx7QTHdvWu1qA asGTNp8rGl4PK3wK5h/3/cvBo02qT66lPzWc95LDLd1fpT8FHsqIGlZ59Z59eSjfQaJp /1o4AnHT1X1PRzbOZyCC4FVMmAdjnQmkkwOSEH+2XJHsAbqr92iuI0wLO03IJHtMZ2Mw XpUw== 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=q1KR79493r5S5k1LJ0tkfqdzMaokbSs2JMK62GWSGGM=; b=wjzNFQXizytR6FC2ue7N8j+xVbtzGjVLhRV8WZu4ag7it46DDxJ6UyY3Rgr1dw1ObN KNwIFm2D0IX8lMxgwA6o37aXESUD4nYwMwcobLm5b16vjeLDUSw3wT78yJLY6IAvi6A4 qrMlaLO09KadwWXTooAyHxF/UvHaT0r7hTnIhxjNsFtJjTrLeSfesalJa/8BMaY1c+1F rY7DJsK9H5KJdeyj/lyRz17iWgncnPuPDkPm6WmvoS/3vClK4p2ldoCGvjcwQgcfk+re 3TIWvXjtwfqqRWU5GaC+4tIA1SxbGDxaWlbZpci6/FS88Ng1cWkgvjWJiq7ZOYs2SgOD o04g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xduJRwtE; 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 z6-20020a056a00240600b00562b0b92756si37914924pfh.297.2022.10.24.06.13.13; Mon, 24 Oct 2022 06:13:27 -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=xduJRwtE; 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 S235425AbiJXNMn (ORCPT + 99 others); Mon, 24 Oct 2022 09:12:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235974AbiJXNKT (ORCPT ); Mon, 24 Oct 2022 09:10:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D0EA2236; Mon, 24 Oct 2022 05:23:57 -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 83472B81202; Mon, 24 Oct 2022 12:04:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D12D3C433C1; Mon, 24 Oct 2022 12:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613051; bh=AV3dXYVdawBurlLUfKnkCxYe4h33AiN01pwO+9A7fS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xduJRwtE6Bx9EW//ISZ4limVgRRRPkh/xg5L6rF/f8xPP4fCqKUpzy0JsJd9Tnr+Z Px+wtcKeRZYlDp2KJRTy8rnzY2bJNdVzedX55x6RghEf5CsCbrr73LtzW0TIPV2nEs VvnJ+W3Oe+4bIgWvl6ltA/NXaoobo+bKR6kjXTh0= 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 4.19 189/229] wifi: rt2x00: correctly set BBP register 86 for MT7620 Date: Mon, 24 Oct 2022 13:31:48 +0200 Message-Id: <20221024113005.238941629@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@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?1747574805250691663?= X-GMAIL-MSGID: =?utf-8?q?1747574805250691663?= 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 9469517ac65f..c9fa56b721b2 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -3658,7 +3658,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) {