From patchwork Sat Oct 22 07:27:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7772 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1121119wrr; Sat, 22 Oct 2022 02:27:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6BdQwUEqev+jBA3BU18XtennPB5NTL2MoGlqTqy8t/twXDFchunuI3Zv5gKe/369sfilJT X-Received: by 2002:a17:907:3f85:b0:733:3f0e:2f28 with SMTP id hr5-20020a1709073f8500b007333f0e2f28mr18574730ejc.376.1666430853555; Sat, 22 Oct 2022 02:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666430853; cv=none; d=google.com; s=arc-20160816; b=lA1enNN24GkZJb8fjFxGx2GdIKVxxNNdw/mmxmZglgKA5Q48w+CKmC/n3jqHqXF+bV ELkNxYR4ABqEL1ONW7onlOlut/8mnKo1jSMzIe/UdxSB4633UAafvL/EBQi+DB7gXdSC 2ndkfeEsPDGX5rcxczBz7ijzqvoKVNQtkBhtsL3Vs0tgZ8vLAJ0g2C9uTxW/s6x2wtiv zubd0iM69jAPKo250sXagmu4o5eumZPT2Go6PC5zYmv+Si8UqlW6bQ9ej8OdHY6osy8P XyYrj/34zgpCc/l7EH5dUFVjCmTTUTO1RqjCv/SgGweiSyBqBdUwIPnr/CVH7AhzY3Ux LZPQ== 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=hmnawpeGzLIrNHp3t1DpCkBIAJrMIRDzH2CozytF3W4=; b=Gz6zEAPyKoaZe1kZdc1WEaxQPYltjXoZf7edZvnkslUNH0ABCuXOa2fxbL1B4hJfsv dHtj3/w0NIsMcQzJIpbBJSHrMmNoEYs/hs+1cJJ7IC3ARAjQJSMwg/u2iCSUoNntvZ0+ lnJuNnSJiocTlbcAJoMoW/JbXjeaM3TWRhiDeyZzAnLeurbxmfD/h5FpJ71yMawyvKWO at+m2UNL1NdNH6h5sAc6D/I07okW+vbHeVdZ7mv4LAKFOQVA42L2BujSb9Ole6q/NqKc P8HzxOWYBKClshltl1ro1PAV6H/+od8eNDFsUq98LzX685jlS3nBaepK22eV6HqhpIaq aQsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QCLYih4F; 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 cn1-20020a0564020ca100b00453b9f11b56si6065396edb.261.2022.10.22.02.27.09; Sat, 22 Oct 2022 02:27:33 -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=QCLYih4F; 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 S229568AbiJVJFU (ORCPT + 99 others); Sat, 22 Oct 2022 05:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235110AbiJVJDr (ORCPT ); Sat, 22 Oct 2022 05:03:47 -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 9292E2DCB06; Sat, 22 Oct 2022 01:19:08 -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 28760B82DF2; Sat, 22 Oct 2022 08:03:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CFABC433D6; Sat, 22 Oct 2022 08:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425819; bh=64BKziNuR3Z1Z/RqTCjglZOg+zcP3c9qVCoBpV4Iu6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QCLYih4FXOHsNI+VyAHSpkBMp3Kn4KdaRrjbCHSjHidS4F2NVL/iV5BP4tez+w9EQ M2YVku7n2PL0f7QgrYGfJ5miMlvvPcopyPGI4hxmQIthABeokBZ9WJRiYogt3xobqk lWPDDiUU4JBKE6C5Uglh8r2DaIbaERFhKtbZNLMo= 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.19 587/717] wifi: rt2x00: set correct TX_SW_CFG1 MAC register for MT7620 Date: Sat, 22 Oct 2022 09:27:46 +0200 Message-Id: <20221022072524.403947326@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747379398383896543?= X-GMAIL-MSGID: =?utf-8?q?1747379398383896543?= 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 b4fb4d1bff57..854637b1db49 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);