From patchwork Mon Oct 24 11:31: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: 9237 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp461132wru; Mon, 24 Oct 2022 06:43:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UJocFX73P129Vm82RlWM59Czi6CoJC0NeB8A8h4N7MuDPhbD8c2NCg+10c1QY806viPxD X-Received: by 2002:a05:6402:31f4:b0:461:604d:2607 with SMTP id dy20-20020a05640231f400b00461604d2607mr14446463edb.330.1666618993050; Mon, 24 Oct 2022 06:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618993; cv=none; d=google.com; s=arc-20160816; b=aujXhB4VqTxcUjMb/hO/7kdlyK03+qS2n1AuMizHqZDtm59m1VsbrYqx3Ed5TMSqxu H+iYHN3yGdFBhupp27HN+5KKwttr8zYRnJ3jeKEgvZSK/JT5xom6yHc1XdQz7mdculIe YA1nZzMFNvxkZh21mj/LjTF3ql7M7iNJQvWVqux9l+L6I2VTvPti1jad4gaCLaGd3Fqh qg0apkFA702SkWwVsqxcOEkWzR4J/ANhmbeqLlzzbIyJ0cEU1D8QWiBrV+vF0tLK6mLu Wo9J37R/grMmL2yAcJ/xuXB2BF8DRZPSMIdkyBfGuRoFFxzmhSKwwOgB3CODpNV1tONT czVA== 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=wHlhdyYwxmvNJdbjqJ11ec+WRxqR2YRW/5tGs9Ks3K4=; b=JCkWIRUjSCBVH+Ms+sAPR3+B5uGRFEETNqdtfhX5ukpQxcuc4N9sYG+VRqDdrvP6c7 ekUTsgkHVc2PHCb/+kPaHXBQi2nsKC+6riqA3jsAszVZRP1Dbd0HSo722rYtf+AzbGQG z1pUDvI8c26J/tBU6aoYQP0ou1Xd0ADkPeA987CGljm7cfyyTUbh+kt4cJ/mlB5f4c6f Xsn94o1XsNJDhgJW7C0rIxG3+74fLeoR7sU+ndMvRd+ZQAuLSsaXt0jt7fb8yAGspmMv p42+TBhjRYzdtegc8sTpb3YkuH2KvNvksYTKxgN6AYnL2KighiUcpTng4TXKIXOMxjk3 FRow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FKUqHlPD; 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 x2-20020a05640225c200b0045928479b71si27432609edb.405.2022.10.24.06.42.45; Mon, 24 Oct 2022 06:43:13 -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=FKUqHlPD; 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 S233199AbiJXNgU (ORCPT + 99 others); Mon, 24 Oct 2022 09:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236401AbiJXNa7 (ORCPT ); Mon, 24 Oct 2022 09:30:59 -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 46895ACA15; Mon, 24 Oct 2022 05:33:26 -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 4DDB5B811A3; Mon, 24 Oct 2022 12:04:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FEE7C433D6; Mon, 24 Oct 2022 12:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613046; bh=aEG1Q87LEw/VLXcyOS6H+7+xQgq198aUjuI9fqs0HMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FKUqHlPDaKGiwFOIGk+cGwiGhpV+v6QHLRpSHs/zOUBKxuM8ISublCfNd1f+9MT8+ wnDR7/OX8YGLi8Aty0uE7aaJlE4KrxIYFCIme2D1iof+/Iekoh37PUHmyxPyfFO/7m L4huEijVGIAORF6P92TWxZ/eMAkmX+NcSVlD4saA= 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 187/229] wifi: rt2x00: set correct TX_SW_CFG1 MAC register for MT7620 Date: Mon, 24 Oct 2022 13:31:46 +0200 Message-Id: <20221024113005.161656239@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?1747576676936194400?= X-GMAIL-MSGID: =?utf-8?q?1747576676936194400?= 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 2a119f314c38..b8224b215532 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -5318,7 +5318,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, MIMO_PS_CFG, 0x00000002); rt2800_register_write(rt2x00dev, TX_PIN_CFG, 0x00150F0F);