Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp326814qtb; Wed, 19 Oct 2022 03:04:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ybiKKuCAi/RCuoPzbspmVylGdsa/jnd2JQXRdBrK2FP8GuArJEKp47ted0MecL24S7vEc X-Received: by 2002:a17:902:f312:b0:17d:79e9:1181 with SMTP id c18-20020a170902f31200b0017d79e91181mr7794237ple.173.1666173840395; Wed, 19 Oct 2022 03:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666173840; cv=none; d=google.com; s=arc-20160816; b=Yw9mAQuhbgyD2BlCq1MEtSBd1q8sqDuNrc94KuLBfLY7wk9nA1ZFMGWjcRbagEcga8 MU8Vl3eiV63tSGLPwz9qTChEqr/FQ61CjGYvH4UgHNqd/+TO9SqAB80PGgLYzKgS8JeR LTJ1aqpaZ/NpoW4yEEHuQan7MtAhw5CNspfsvsU34louKEztKSVjOTWWiSI/rnkGCJ6J lr4nNYVQ2G8pKOzosC/syZdHI7x7Y2Ap8drmRycMNQXrxV6rlTMfTbvdNrSkjHE07PT3 OUoD4pYWpYoIU3orKW83yYMDCdRhwXQisy1CGgS21Ao2ydk/J3LNNNqZcMlGfikj6p54 DhTw== 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=MvaBctPznPdORHxa0z1G0kp7B+LSIJE3+98dG0nqfCM=; b=cEs1jaQKQmpt7i/TU7RP6tAJfWyNSJ8s/g+jVp0yv275N4bKAG/JlmPe4JlajtnJYh 6fZe3A50i7pWqccph8eZ9t/PxY0nyIWddHNwVMk/BsCPh1tJ13GcedHtjDKgZNQgdm/v cq85OTtkQOzLzCgbR4bgZvTJV2vUnun6z1eHCPWMnDLJB8uNsQXbGhen0NMCAnc0dKt2 86HR5kZrS4Ima4C32ZxeVT8ILHH+5jKbjLtzResGNDUV1eHLfy/d3Rg5NOJtpSB1Ov9w SfqwO4l7eSDm1S3hxOBw8vV9Qoyq1O19DEXl8QkHEFPKcuJs+HL7f/NcgpcpvFOGrmVe 72vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="R/MCH9oZ"; 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 z5-20020a63c045000000b0043af57e5d16si16367312pgi.724.2022.10.19.03.03.46; Wed, 19 Oct 2022 03:04:00 -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="R/MCH9oZ"; 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 S233011AbiJSJP6 (ORCPT + 99 others); Wed, 19 Oct 2022 05:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232903AbiJSJMK (ORCPT ); Wed, 19 Oct 2022 05:12:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DA4AC8976; Wed, 19 Oct 2022 02:03:03 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4090561857; Wed, 19 Oct 2022 08:50:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 472FBC433D7; Wed, 19 Oct 2022 08:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169450; bh=mNavhjTu2yfMxnJCyu1lv2P3CIMvrTtMyZ8wrnDm0f4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R/MCH9oZqMQ6qDPIA5ZPZdJAuY1eCwawU6kw4ptY9gdpUvXaqeVWNki59iYVGd8Nn 2/nopqh3jfBES8auM3FfqZPrreR0Nc2erriTR7QwJx3/cHvgACw3PTqVMNavajgHgl 50lnW777kMlbN3Sz2fuJIzSvhuE9xUhjiwDT4/7o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Wang , YN Chen , Felix Fietkau , Sasha Levin Subject: [PATCH 6.0 282/862] wifi: mt76: sdio: fix transmitting packet hangs Date: Wed, 19 Oct 2022 10:26:09 +0200 Message-Id: <20221019083302.482931288@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: YN Chen [ Upstream commit 250b1827205846ff346a76044955cb79d4963f70 ] Fix transmitting packets hangs with continuing to pull the pending packet from mac80211 queues when receiving Tx status notification from the device. Fixes: aac5104bf631 ("mt76: sdio: do not run mt76_txq_schedule directly") Acked-by: Sean Wang Signed-off-by: YN Chen Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/sdio.c b/drivers/net/wireless/mediatek/mt76/sdio.c index ece4e4bb94a1..0ec308f99af5 100644 --- a/drivers/net/wireless/mediatek/mt76/sdio.c +++ b/drivers/net/wireless/mediatek/mt76/sdio.c @@ -485,7 +485,7 @@ static void mt76s_status_worker(struct mt76_worker *w) } while (nframes > 0); if (resched) - mt76_worker_schedule(&dev->sdio.txrx_worker); + mt76_worker_schedule(&dev->tx_worker); } static void mt76s_tx_status_data(struct work_struct *work) -- 2.35.1