Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp3166575qtb; Mon, 24 Oct 2022 07:13:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/XxNh1dk7XjFZsvE8xJQxq6K18j5eMQcntaAdRivBuYcVyotO6LWOowFysXCyaxtWNlnH X-Received: by 2002:a05:6402:520f:b0:45f:b7a0:a31 with SMTP id s15-20020a056402520f00b0045fb7a00a31mr23844891edd.379.1666620804441; Mon, 24 Oct 2022 07:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666620804; cv=none; d=google.com; s=arc-20160816; b=ZkyL1+uA9/2V1nl6pzrIgJN7nGazcY0SO85iPEEiUEZ9/3a37z3mMejOGbseSlMfrg 4+iWM4ZSjfy3OcAnIPXWdhis86Ian9evfAD04rLe4DZ0POdi9N1xeCFU0kyE2brrQg45 qNAS57dlcnUVJn8kaiWe51l//7FdOdfSCBAWWnNPPX/xUQvSq8aS2K2P8r42QHWQzFpN OV5ug49maK6nTLRtbZqpfIisEYlSSziyhopwLWVTYq3cfWpJrGTc2aqrR+PNj1rWeUfT 0fJAmcNDPweSktnwQ1xP03K1swbbCAO+RaJbk63oiz9GcURmy8R4p16j964gxNGa2xe4 2M4A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg15-20020a170907a40f00b007897abd2d17si22180168ejc.468.2022.10.24.07.12.58; Mon, 24 Oct 2022 07:13: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=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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); -- 2.35.1