Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp906645rwi; Wed, 19 Oct 2022 04:35:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6FUtu/7zu6qSAi/6/DKKf9GyJ4hPDG+w5tc+RNNmEvLZHlrREN5FYrarkNOAHL7aFY49HV X-Received: by 2002:a17:902:e5c2:b0:186:2df3:c73 with SMTP id u2-20020a170902e5c200b001862df30c73mr7890339plf.30.1666179328463; Wed, 19 Oct 2022 04:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666179328; cv=none; d=google.com; s=arc-20160816; b=k2SRL1ASP3Bfrkm1k8tUveKNCOc4MyuwbkcVDQkE6nVtswkKEgUpPptHGP20ZZtJlf vvGfLQ4MTySC5WejjuB9b11aYUsvfro/xuJcaKcr54/czPyGud2zgcuf2aFOF1kEOHQb CYcULz3YTsBW2ez9IsQ61xNooWOs7ejC1bbOqJCfd0kAOybo7CODK72XZU7KDug39HLP fG4cexzXbWN9yF9evvtSt3YccCWvgY+5ZxAuRi8jAs4Xh0UuBqFniEGLa9gIjRLWRD7P Ayo5Fq3J2gchUmh2XHPggjUHzqL0NUgUyckNPC58Bk2cgUXOH6Uqj+IItOKDGy7HcAX0 C/Tg== 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=HwVk8TraOSGJiT/2FBELSmU/AZiU77kfE1YTFLRgS+8=; b=LVTt4UfHtCRcrpKZP0g3RJbijuzqtlm8lI2SWUdKnreYngfIHflDwIjAyIaN83Tp3W 2SLPwE3TozIetr0m59V4m0y//Qi5BuBVoyPEax7rQipC+O2GpSY9JxUXZgvuD8/Zn593 QHja1CcUg5wSG7vTOtJFWjk7vDm/WPtRbZ64H+dMHKn/DWgGEpLYHo/oWtYjVuBRPIPf OHOoQSD6pB64C76MELH85Eu9tCKL7tbSyRk8PNNmKW7XHVT1W4QlFm+G5qWBnLEGxZUW eX/XBB5AjRGxrHqtk57I2GyoKUs91p7dIUe07UedCOlMG5JMMn5rOfgFSBMxO2K+LoW/ 6Fhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RgvXyWSz; 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 f2-20020a056a0022c200b005633766252asi21018645pfj.313.2022.10.19.04.35.16; Wed, 19 Oct 2022 04:35:28 -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=RgvXyWSz; 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 S234490AbiJSKvB (ORCPT + 99 others); Wed, 19 Oct 2022 06:51:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234429AbiJSKtC (ORCPT ); Wed, 19 Oct 2022 06:49:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A07120EDC; Wed, 19 Oct 2022 03:22:16 -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 3C21EB823A9; Wed, 19 Oct 2022 09:11:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA7D1C433C1; Wed, 19 Oct 2022 09:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170687; bh=OAml6ui7Hgris0BznGN0f8ZBUbQ59U544//4SVvW1go=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RgvXyWSzPKzB0MPYlLZFhY6iuHYe02VUugFPLtB2/Q2acvstYvDFtham2u/vH5JXE HOmv/WKVM4/9jzn9D8DKgN1rfG5OiGqGXsOgwlww8nFqXX8qHKmL0EwA7d/97sTtSa xOVdNV6EArRUTcXy6ODwWM0fhJikQCDaJVtbHQQg= 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 6.0 715/862] wifi: rt2x00: set correct TX_SW_CFG1 MAC register for MT7620 Date: Wed, 19 Oct 2022 10:33:22 +0200 Message-Id: <20221019083321.533865529@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@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.4 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 de81b6060359..5e7bca935dd4 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); -- 2.35.1