From patchwork Mon Oct 24 11:31:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9152 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp457633wru; Mon, 24 Oct 2022 06:36:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4eFDqWjLG9EFQs9ivEySbPL79AGCOcsEzFuAVGyCDUh8FGbQ/6aItMnuzWai7q/fn5haGA X-Received: by 2002:a17:90b:33d1:b0:212:f02a:e5c7 with SMTP id lk17-20020a17090b33d100b00212f02ae5c7mr11995255pjb.137.1666618578055; Mon, 24 Oct 2022 06:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618578; cv=none; d=google.com; s=arc-20160816; b=X3lIqOS/dqdvi0ha6dCmcUFmeuJla400cOIw5exCEJ/7YzSxsG2c1jwAnToBmE2gNs zgmIvsErZIxoCNmFqXvbTbO1ePD5Q5/ERW3P5e2hGU4xtTE/KPAXlrqx/9hGUtVobwDv lh3wQocTmuSGCKrWRyCZ7hGN1SGNADK9JxoMM5k9YpGtpP5c++QipbSBk6E62zh56r5G j2jQyW1ag0omTypY+I+dJFKzpM9gA4K/TZl9tVyvKHYTPQNq7/xV1SuRY5DGcIfEYGsh HCgEBU2SDPN+6/SYmh40uyRnVPquLEK84MwV9FGmjZqklO9RhPtx3j4wpPNyPN+TZ34L Jzng== 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=ijQdXiO1i6Yo/ceR3e2UpQkHkHWOa7STgxeHGJ+f6w4=; b=n7i/43NgHuoIqIR/CCNS+pIXVfu5bweSDNtr0YP16OlxEUHB2GzwWsNCbgwrFoHg8l Ka3WnoWV5W+g97MsJd28KSfzaPyC0ykLxepcBVex6x11195KVVhQMRrBvFTWkuI1MNfa DLCGZX/QPgxMOble5KbKmA3pHq22wJtpKEe4xnNlHoiEUqHiN0SXLHQX/1IUSMr5fjvP nASZ13N/GzXTcUZTwQNuPZ4TvZiPUKS2TrkTHl5PRD+hgXu9z21WHp+cwJ40pLeisUTc UISEfB2/OX8gj593UGDMo7vKxm7Eavc/GO4ivLn7FekL6cOGlZAktfNf7Ka4vbzUDIgz bC5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SUqlAPe8; 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-20020a056a00240600b00562b0b92756si37968818pfh.297.2022.10.24.06.35.57; Mon, 24 Oct 2022 06:36:18 -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=SUqlAPe8; 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 S229649AbiJXN2d (ORCPT + 99 others); Mon, 24 Oct 2022 09:28:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232662AbiJXN0E (ORCPT ); Mon, 24 Oct 2022 09:26:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF074A99D2; Mon, 24 Oct 2022 05:31:24 -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 ED42A612E4; Mon, 24 Oct 2022 12:31:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E855C433D6; Mon, 24 Oct 2022 12:31:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614670; bh=fx3JHcvtdVhm6G9pDbFUGab8CHujgq2yvps8m0vWMQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SUqlAPe8ewP9D1efxyls3W4ryaFHHRMp+0haCnZXX2iw6P3blHzvsD9jRSlUBzSuH Gp73W5J7kGwfDw8vWVIKeKxF71YmutXXCxcvE/zzN0CdL4m2hEUMf5H4pCriGhx3F1 wYPwhaoQRpDfeZUawfQEpZBydPf7rQS8WqbggIkA= 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.10 318/390] wifi: rt2x00: set correct TX_SW_CFG1 MAC register for MT7620 Date: Mon, 24 Oct 2022 13:31:55 +0200 Message-Id: <20221024113036.530957602@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@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?1747576242198910834?= X-GMAIL-MSGID: =?utf-8?q?1747576242198910834?= From: Daniel Golle [ Upstream commit eeb50acf15762b61921f9df18663f839f387c054 ] Set correct TX_SW_CFG1 MAC register as it is done also in v3 of the vendor driver[1]. [1]: https://gitlab.com/dm38/padavan-ng/-/blob/master/trunk/proprietary/rt_wifi/rtpci/3.0.X.X/mt76x2/chips/rt6352.c#L531 Reported-by: Serge Vasilugin Signed-off-by: Daniel Golle Acked-by: Stanislaw Gruszka Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/4be38975ce600a34249e12d09a3cb758c6e71071.1663445157.git.daniel@makrotopia.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 3f2c10c2aaf8..327f19cae4d7 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -5849,7 +5849,7 @@ static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev) rt2800_register_write(rt2x00dev, TX_SW_CFG0, 0x00000404); } else if (rt2x00_rt(rt2x00dev, RT6352)) { rt2800_register_write(rt2x00dev, TX_SW_CFG0, 0x00000401); - rt2800_register_write(rt2x00dev, TX_SW_CFG1, 0x000C0000); + rt2800_register_write(rt2x00dev, TX_SW_CFG1, 0x000C0001); rt2800_register_write(rt2x00dev, TX_SW_CFG2, 0x00000000); rt2800_register_write(rt2x00dev, TX_ALC_VGA3, 0x00000000); rt2800_register_write(rt2x00dev, TX0_BB_GAIN_ATTEN, 0x0);