Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1792792pxb; Fri, 26 Feb 2021 23:52:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzzeOx0NTIZcjxIz5JjfuAfuw8ftfUTVPgRcy/WqpRZjnJDbOjH2GDQ7Miri5eKgj5+3f/ X-Received: by 2002:a17:907:9858:: with SMTP id jj24mr6922758ejc.212.1614412323673; Fri, 26 Feb 2021 23:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614412323; cv=none; d=google.com; s=arc-20160816; b=XstJqe2LeMCPGNZzn+Ljo6tKKjipGhIrL2y0YoxSO7ANuJRCYlUl0Mb5HUhhUTpOeb qHtnwDEKKRaKXd7yRNApC7E45PNtzR07DN+/zSnBbdzhUsNznNqvT3z6coKAoM1W0SV7 5lOqYET2g+7syzazO1uOJcnZbSd7EX1nmIpiyf21ImLlqLH0fILQPbDPE0gQ7gi77U4t 5gBZ64sjnwGrjeEMbZMHtt/E9L2S42vo4+oXZHNiRrQpSmvz79gzRH+941vR9DVHgPfW 3OtYamz/fAfz4PLWrbCNw1tIddq6CJcP6msJUWsYYdKfY/T8v56i8XC9LcLja5yvNWuJ R3hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=7D2GoHtgQ4ZGL+xTPSTmK9k8jb2uElVi/DvnHDIQpqo=; b=EfI32WeGPQHmVV6shTcXLWoh+zRpR/VdJmmbSkx6U3YCdEmTo0Aom27itl/jzuqNcK e7i+EQIiC1vSfMSmC+3d3Ao8Ta+psFEYwlo/jfalKg8HlEJ7eUSkl0+mMp5KlUoHgHQJ GzSN4718Iin91wyMiavAiJNe9luGWZYL8SVshJc7zrSFLAmQi7r91eDpVicBwU4Se7/L 6V2IYk9KevMTRmCtpBrrGkhw4wKAogFM6Cufr/W9gf21ylA8Neo3aPpNPcG2l4tH+sts UM48zC3Hh+asf+/lWJzyFuJiLLGoWfrS6qA71AVwFyEZFPKrbtmxY5CW0PMslmhy2boi vKxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si7717162edd.595.2021.02.26.23.51.41; Fri, 26 Feb 2021 23:52:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbhB0Hla (ORCPT + 99 others); Sat, 27 Feb 2021 02:41:30 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:58050 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230010AbhB0Hl3 (ORCPT ); Sat, 27 Feb 2021 02:41:29 -0500 X-UUID: 563ffe079a1143f19920abb655d18650-20210227 X-UUID: 563ffe079a1143f19920abb655d18650-20210227 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 38445492; Sat, 27 Feb 2021 15:40:31 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 27 Feb 2021 15:40:23 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 27 Feb 2021 15:40:23 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , , , Ryder Lee Subject: [PATCH 2/5] mt76: mt7615: stop ext_phy queue when mac reset happens Date: Sat, 27 Feb 2021 15:39:43 +0800 Message-ID: <3794a3ffadc4a08548a1223e6955671977e78e49.1614411256.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Stop Tx burst for ext_phy after mac reset. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c index df2dc77a323a..0f613063c1ff 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c @@ -2085,6 +2085,7 @@ void mt7615_mac_reset_work(struct work_struct *work) del_timer_sync(&dev->phy.roc_timer); cancel_work_sync(&dev->phy.roc_work); if (phy2) { + set_bit(MT76_RESET, &phy2->mt76->state); cancel_delayed_work_sync(&phy2->mt76->mac_work); del_timer_sync(&phy2->roc_timer); cancel_work_sync(&phy2->roc_work); @@ -2118,6 +2119,8 @@ void mt7615_mac_reset_work(struct work_struct *work) clear_bit(MT76_MCU_RESET, &dev->mphy.state); clear_bit(MT76_RESET, &dev->mphy.state); + if (phy2) + clear_bit(MT76_RESET, &phy2->mt76->state); mt76_worker_enable(&dev->mt76.tx_worker); napi_enable(&dev->mt76.tx_napi); -- 2.18.0