Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4788313iob; Mon, 9 May 2022 01:26:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDJE6cqQCDmiP0U4puWUsI/9q4Ars53bHuZgpA5fOCrtp8++3+ibDMTPNPvJ+SiN/wDK9M X-Received: by 2002:a17:902:c2c7:b0:159:9f9:85f3 with SMTP id c7-20020a170902c2c700b0015909f985f3mr15283772pla.18.1652084801915; Mon, 09 May 2022 01:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652084801; cv=none; d=google.com; s=arc-20160816; b=z99BfLRSLIzhUtba73VQ5Gig1qxp/pnEFAiXoeajuEWcR0WhTPEMQYcm3LM7+38+nI HUQDqj+WWUd6smMTGGGcNXtFotn2CfP1mTCZ07jXfQqyKNp2Pu0UhZj4uWFMfInoooye /Bnuaw9ghYGauCnsIGlefuiuFT/CgWM1yr3yJTYl5+OrTZdFL8mU7MjVi3mXzDJ8yPPC t+Wxgf7LDVQ3QR4lbPqJtSva5vDB6lxmuHkBgQZChnop3skV8GlwxjGuS30DtqzUz65H V8L0rQDsYlb8L3DFyUYSyVcw1JVcLuLbyJwF4ZfW4mqahwEObPJV/fEuAVYZPYxmYefe /hrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Q8IHI3m3QLB88VN1qpTd/Qz/J8RpQdZYkUOA8GKnlvY=; b=MltmF8VSFO2zcwmPhw3GkBY7JQUwbZ5T766MjqwrGod3xjbyxTMz41CQkeuDC+DVaD y7cRtem1eZv5swX60Ux3ic4XEfcRtKePlcTxD0uAhaBcrevIcqWuyzmYBNOoaZbdiL8H lKAh8rLlgDgZgZqaQLP/LkcoUN9Ssw/67RCmTt3lrEtZU2FEjqLf3Xxlsq6Tmudirj+e VA4RwcE0wMhPlodCGq/EBJnISa3EcJwRtWJ8x6MY9mtSHGCFLKD8jOqf0TE1vSzre8O4 MnPMmb9S1XD1gQk1OrXMx9eqxqjmeZ37ReZGpzvO60G+eOh1h4VMYt76mkZYva469jaX t5RQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c188-20020a6335c5000000b003c165f258e9si13874389pga.665.2022.05.09.01.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17EFB1966A6; Mon, 9 May 2022 01:11:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356384AbiEGBZp (ORCPT + 69 others); Fri, 6 May 2022 21:25:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236738AbiEGBZo (ORCPT ); Fri, 6 May 2022 21:25:44 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95A591A074 for ; Fri, 6 May 2022 18:21:55 -0700 (PDT) X-UUID: 0810e5a139a14a6abd0615bb815bf67a-20220507 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.4,REQID:f5db847e-b4bf-457a-9c6e-732c72e7f81d,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:faefae9,CLOUDID:e687e4b2-56b5-4c9e-8d83-0070b288eb6a,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,File:nil,QS:0,BEC:nil X-UUID: 0810e5a139a14a6abd0615bb815bf67a-20220507 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 209804098; Sat, 07 May 2022 09:21:27 +0800 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Sat, 7 May 2022 09:21:25 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 7 May 2022 09:21:25 +0800 Received: from mcddlt001.gcn.mediatek.inc (10.19.240.15) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Sat, 7 May 2022 09:21:23 +0800 From: Bo Jiao To: Felix Fietkau CC: linux-wireless , Ryder Lee , Sujuan Chen , "lian . chen" , Shayne Chen , Evelyn Tsai , linux-mediatek , Bo Jiao Subject: [PATCH] mt76: mt7615/mt7915: do reset_work with mt76's work queue Date: Sat, 7 May 2022 09:21:21 +0800 Message-ID: <20220507012121.2761-1-bo.jiao@mediatek.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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-wireless@vger.kernel.org From: Bo Jiao reset_work may be blocked when mcu message timeout occurs Signed-off-by: Bo Jiao --- drivers/net/wireless/mediatek/mt76/mt7615/mmio.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7915/mmio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mmio.c b/drivers/net/wireless/mediatek/mt76/mt7615/mmio.c index ce45c3b..a208035 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mmio.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mmio.c @@ -145,7 +145,7 @@ static void mt7615_irq_tasklet(struct tasklet_struct *t) return; dev->reset_state = mcu_int; - ieee80211_queue_work(mt76_hw(dev), &dev->reset_work); + queue_work(dev->mt76.wq, &dev->reset_work); wake_up(&dev->reset_wait); } diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c b/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c index 89ea285..1d73c5a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c @@ -607,7 +607,7 @@ static void mt7915_irq_tasklet(struct tasklet_struct *t) mt76_wr(dev, MT_MCU_CMD, val); if (val & MT_MCU_CMD_ERROR_MASK) { dev->reset_state = val; - ieee80211_queue_work(mt76_hw(dev), &dev->reset_work); + queue_work(dev->mt76.wq, &dev->reset_work); wake_up(&dev->reset_wait); } } -- 2.18.0