From patchwork Mon Oct 24 11:31:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10180 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp641095wru; Mon, 24 Oct 2022 13:34:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4J/TwPxpaMIqzjbsIyd+JId3KEboi4Cust0P8cAZwaFd0cRsT5+3IMxwEUkLNLCO8hofsj X-Received: by 2002:a17:906:9c83:b0:779:c14c:55e4 with SMTP id fj3-20020a1709069c8300b00779c14c55e4mr28505989ejc.619.1666643664444; Mon, 24 Oct 2022 13:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666643664; cv=none; d=google.com; s=arc-20160816; b=FFzjNKQByE7ftG42eozkQ1EjiphPuGG8y6hHunZZpPLBE2DBp5lZ9ZSL7FL/0LS0lR IX4tcPWrAsIxT8TEIAN4CXyLJJQMkrt/5L/Gc31NQpzSWGhI4SmQ4tr8VikdQ3FTgQqL Xg5ZOVx6aI9u/INTcDiWDKXyMnHg0e/4RYwb3mAdEWDoaQvaSzVaHnfPteBLGhMngjm0 N+d0sIUeZwALzAm4BuIaBJDHaadvpYZeVCCpPlUQ8l0/IH2lXZ1wJvyIVe5NbfTxZ5hW mAWzM+4PpXUjYPTGJlXROuui7HmVZWTV7TWh+A1+t0FzZVMz3uVdN8XhpBBPLX1hiYyl KgqA== 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=rWP7V/pE3WSzH94pBIcopZtmS0zEDsa4+kNCfPxSfj0=; b=HG3upfAH9rQMnp0x14uZ1Mn90vxRMhwFx2KM5jREyKLuzL8ZJzhdPP2EcGmunnZePf DAPJFg8iaeK4eAain1AGYmZvf3FJlEdEEY+P1gAMs+y2HN9XtY417A8KiRZmv0s0rDr5 z1Yb8QH0hrZF2z005m1MKq//6E7LHfJyZ1mlEK6imxtJdDt0P8DLW065PLXfdWS78sGg XCwSHyoK8lGFrOVxt8I1TJmn7MUz5SvnEqyGls55zQAbmV4XTAWg522S4qX2KroxSHaQ sSdqoujssbBhLDo+zsi39bAoT3tWE+dTmmuBglmuPiXPuI+zpkA8LDEVxPAO0SZarRyC MUdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Gl6gCrT8; 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 cr18-20020a170906d55200b0077ef2f9c8b7si675156ejc.922.2022.10.24.13.34.00; Mon, 24 Oct 2022 13:34:24 -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=Gl6gCrT8; 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 S234201AbiJXUWV (ORCPT + 99 others); Mon, 24 Oct 2022 16:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234205AbiJXUV0 (ORCPT ); Mon, 24 Oct 2022 16:21:26 -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 52FC31911E2; Mon, 24 Oct 2022 11:37:48 -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 A2033B81608; Mon, 24 Oct 2022 12:13:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01C11C433D6; Mon, 24 Oct 2022 12:13:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613611; bh=1gc9qdUk4QPrmHgqlVxH3cCbyRHrywczdeucThVyjiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gl6gCrT8NUVZsCN5QK+RZBlbW6loOVzSj5/9QBdWBKK6+B5N/85vI9WYQuMOfVHQg lVncCF/ZO/8urX2C3HsHSlhRkR1OHALMrcvVjwORHfBHcIKVc7XmVt5y67KJRqJRKg VpxwmivNuvMcpsI3V0Z4OJd/Evor6DY+BL5Pn6eU= 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 203/255] wifi: rt2x00: set correct TX_SW_CFG1 MAC register for MT7620 Date: Mon, 24 Oct 2022 13:31:53 +0200 Message-Id: <20221024113009.778081899@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?1747602547161792054?= X-GMAIL-MSGID: =?utf-8?q?1747602547161792054?= 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 9b56a4df2e94..20491ff6bb76 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -5852,7 +5852,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);