From patchwork Sat Oct 22 07:22:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7326 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1093838wrr; Sat, 22 Oct 2022 00:58:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5fTzefwCAU0lA+y5zMzaiAw5u3xX52RQAjXBRix1lKLoxOjOaDQzm/IIElX+36uCQNuLYx X-Received: by 2002:a05:6a00:1414:b0:563:ae66:3103 with SMTP id l20-20020a056a00141400b00563ae663103mr22823496pfu.17.1666425515749; Sat, 22 Oct 2022 00:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666425515; cv=none; d=google.com; s=arc-20160816; b=IA0aSPQdLCq/ALdvG4cNnILkVhDFuuv5SvxCHCYZvNqMLecU5WB4Z5ph+eUKaZ7SAG 6gNh2Pn6c7rC+EynZTxxbLVoPGsRKo9C9U2LceXkhbogog0S/xev4CVOpV8GxmtXjoEs 6ZWYBrHzozBwH8aXb8itqXQWtUUvDEB33Od1L2lLNw7L7uygjYusAsEvXYgrdlnNfPRq 3pK+ezTDPy84vONE3DqN5gikjwMmn3fnCFPRPx74mAd9TcpzVnKBE0Ganed2Hcl/gmbL 01+93FF/aNitVTA0CSIr/atk/0uvblkcee+P7trTwT2HVAvd9iWyjMWY7AODl7ziexqj c22A== 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=Q++Z1BUPIIX7Od6i1PPgXl41fDxp8ow+FITPu3gkX1U=; b=DIwpxWq7YjuwyYfvC3X5GX4Ox2tL1l9SBnXxojjctDG04Q/MnbeLJ0ZKeSjNlKe4ah cRLEuSjUF88pSdDZiNrCnIPNZMdaJGAT9Lu6LjiHFPWgLmgUay94RRJ3d9ZVLe60SmBM o9A8SjrDKI6ZuDlS/4LWg004A3IWcLxki7qCUYB5g3gwvz2C3/NZn44niKK3N+dOD0J6 4CapShIdsYqDP/e9NUrk1ZWUJFI4Bdt2lYvkR8ZT2glDXhf3G0UX5QrxdcfT8yQuE+Fj 0cZfmQfEFpQNQgU5Kki5h2yKzFobju39A4IYNc6t5Q/jcRPW85hl9xWsKAJS8KS5Wlat TenQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ncNB9RwL; 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 x9-20020a63cc09000000b004580a3b847dsi25576430pgf.287.2022.10.22.00.58.22; Sat, 22 Oct 2022 00:58:35 -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=ncNB9RwL; 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 S232346AbiJVH5r (ORCPT + 99 others); Sat, 22 Oct 2022 03:57:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232039AbiJVHxo (ORCPT ); Sat, 22 Oct 2022 03:53:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 149FF2CA7D5; Sat, 22 Oct 2022 00:46:54 -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 C12FB60BA7; Sat, 22 Oct 2022 07:44:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9E6FC433D6; Sat, 22 Oct 2022 07:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666424695; bh=Znl7Ywixd2/dDDc1fGHz5Ph8s2HQtOrWq5nb89jtzME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ncNB9RwLsOmINJQLJyjit2FOQkHkBajpa0ZEekrzdpL5QsmAGoO1Csm1oLgAPmxii Wd8CiVvC4X29QF6HWIxeUqPQN0KjZN/H0d9HwhfHNytCqCn8t2/Ek5ZK29IlXnfS0R hrpfNu44ro/sbrAfHHwyt+HdNK2OzLv8F1FUOWjw= 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 5.19 242/717] wifi: mt76: sdio: fix transmitting packet hangs Date: Sat, 22 Oct 2022 09:22:01 +0200 Message-Id: <20221022072457.778536172@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747373801363829011?= X-GMAIL-MSGID: =?utf-8?q?1747373801363829011?= 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 fa54ee112b0b..140145e03f12 100644 --- a/drivers/net/wireless/mediatek/mt76/sdio.c +++ b/drivers/net/wireless/mediatek/mt76/sdio.c @@ -487,7 +487,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)