From patchwork Mon Oct 24 11:32:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10021 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp622186wru; Mon, 24 Oct 2022 12:44:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wOzo3/ksqyGYxZLHtIpqK2HTIJOwsliotD4VH5lcSEodM5L3kv/xydsznWgGTu18PhSze X-Received: by 2002:a17:907:5ce:b0:730:bae0:deb with SMTP id wg14-20020a17090705ce00b00730bae00debmr30137647ejb.181.1666640696245; Mon, 24 Oct 2022 12:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666640696; cv=none; d=google.com; s=arc-20160816; b=QVe6lOD/gLq+HYPCDP37569u3VWuBmrfsPTkhnmTsh2Ii5ZJyvwrLN6F9t6Zx2PISu bNw/fHXD2WBqsTK0kYrVQhJQX/S4OGt1zhGHVDoaMTuH83J+T/r6+V5sMPXMPe3efA5T X9nQF507KSXfnBjZ8Iuz0CBtdCw8qEWBUqIq74y4LgKqbzLaXaPU+MXni2kXiZDsRBO3 liQkPbsmFKLZH6mSGu9cwHPXL2F3Re0MgtOLL02pIPdKRDuyWcPLzk3P9WW5bym7Kfw2 QkE5O/xELZd7sGvKAtXaNqkItRqCXZhYlJesxrzuTpsi4EncWbi8MTV2Y4p28oR4fT5t v3HA== 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=rfXJtZncP4tceZE4J469vJ0NK5JW4M9XOd5Q7N17+W4=; b=LKtqSUoY9Sr0xgCVWnS6I40fP5zv3qD4aR9tniQjmzCDlMv3C+l6UaOnGsrfrYx7wl 6PoW0hNksxXwfaDtKno0V+gl50VXSlzzimEh9/8Pd05c0pHan0E5ZK1xQik9WPFmiAJ+ bo5TFXccgMCObDusrvw0s91P+4kOLRScDaXt2JjRPVGRFLasvpg7a0qQ8kSgE96ysY1F cfo8UcIKWRJ3On3eDw20nRIq/kQo2K0FYHOKKRNW9OGUIQwMJymrXZbyZ1NkepquITlD y8Dnt7bJRQ6m1VM73jeekiqOZ5aQTx7dp0bZc4/F1YeKw7WJwOVRHA3y72WYPtav4Fxy HRfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="uL/azE11"; 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 jx7-20020a170907760700b0073dbc331a40si491912ejc.188.2022.10.24.12.44.31; Mon, 24 Oct 2022 12:44: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="uL/azE11"; 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 S232797AbiJXTjs (ORCPT + 99 others); Mon, 24 Oct 2022 15:39:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233454AbiJXTjF (ORCPT ); Mon, 24 Oct 2022 15:39:05 -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 A8FF046220; Mon, 24 Oct 2022 11:09:45 -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 BE142B819B0; Mon, 24 Oct 2022 12:53:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 169F0C43142; Mon, 24 Oct 2022 12:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666616005; bh=nUdMMQEpAsFa/VwMhJUvn/GloQUOApviNiwb6m3B3EU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uL/azE11tqx3dEyChLuMR+KU+JGgoLlbvY3+Hg1dtbBINxGULjH2hzYUF1V6JPpnO GWF9l5uFpB1pG04q3+4abgrodtgT4Sa0u9JmL3l+8Hmr+C4GLXz/5Jov/agmzw6Ajs BDtMpg5kqTU95ubTi7wK5z0dti/YktxpqW6sIHwQ= 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.15 435/530] wifi: rt2x00: set correct TX_SW_CFG1 MAC register for MT7620 Date: Mon, 24 Oct 2022 13:32:59 +0200 Message-Id: <20221024113104.779636028@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@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?1747599434316894762?= X-GMAIL-MSGID: =?utf-8?q?1747599434316894762?= 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 0a47180f321a..cc879035acae 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -5868,7 +5868,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);