From patchwork Wed Oct 19 08:26:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4783 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp215886wrs; Wed, 19 Oct 2022 02:16:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7AoVoO8pbE89tlQV5pbChfWXChiUJW2nKuQJSDFIFAW9OoGF+RiHANTQRKtr/xzvjuxtEO X-Received: by 2002:a17:907:7f8f:b0:791:a840:56b4 with SMTP id qk15-20020a1709077f8f00b00791a84056b4mr1491612ejc.540.1666171016234; Wed, 19 Oct 2022 02:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666171016; cv=none; d=google.com; s=arc-20160816; b=hasVl84kYimZXyzdjMYyXzvfr4wnyCTHMywk6bRZnSXvWD/fSFtAj/b60gnmGPH8Tn UhJwjlnQjn8sChspmvpfBN++3/xBuRX2uzG2HHPjFr1ltP+CmkWZ9MfLWa6gt2fMeY8Q 84ShHzIUiGPFpnDgnDS2/8BBQcg/a6EtyWDtkucD0tL3pA/LaEq0NppgjvLQNTsQAMz0 5vnFNGOG5rXe0v2OdZldYer0dPmUf+5msGFlxU5VpnsjThb68G3T8/XUddIYHQU1WQ2c URadjNnB84rJsgYbgGJZrSf6CFHSAxPXZO78hCoSZDH21bzDorcVgOo/La1Qs+lhy/58 pVSg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd23-20020a1709076e1700b007414886601asi13018090ejc.25.2022.10.19.02.16.31; Wed, 19 Oct 2022 02:16:56 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747106939552191559?= X-GMAIL-MSGID: =?utf-8?q?1747106939552191559?= 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)