Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1858390pxb; Sat, 27 Feb 2021 02:28:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9NMZ5/7mw0e7Nz4oD6scOvU3QatPC+KMMLeZKsKQ3h13GTq/BveEJjlHZqng0s2gISPIT X-Received: by 2002:aa7:c80a:: with SMTP id a10mr7609034edt.380.1614421734977; Sat, 27 Feb 2021 02:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614421734; cv=none; d=google.com; s=arc-20160816; b=J9GiP5ZntxSKLChVzdq0jaisp30d855f3q2nbspWLehe8EpyUvwiih4SLnpq5wWWeq 39J7MUnZ1CzvZ5k95/9jLuYkNwSNTOxzqcjjG7H+vD3xY5KHqOINYi8o9kZlcxkwhFPF C8D34QkcspMLUtJL6P558pI0BexsEN8dHvrqeh+m7R5bT5OynttdHOMAx+XUvNDWZAH5 w1Uy9px0gpNzhQqQk0oN9TLYwQRZq6ujTijx9y9J2/BQavLuMo2IVfJzWry/ayTRq0m7 mIzbfMQwmbupaHDVVqM9s9APK1ATA4dwa4N+gfnDQ23vo5Ogx34N+2q4ZEoLHp+q/a3b sIIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i8jG9et3AQV7tkVQ2jJAXo3h388OADCHGlFBlKkFWCE=; b=Q2kZo+fn5todKGfx8//RdY/+p16ENW1EnZNPfOM2XnvYSA0ewK9ctzuqToY6iWBj6J XDLKklwJLiPtZ0U6Pu66EP07fXYs7v95O6+BUL/rMy9kAjg4WEDRV49ieiCX3SmFE0R4 VwMlJZv4py7my79KaLhVQSLNf47PqoLNDoGs5V83diFCfAt5xh4aEeDj3AqqetkaqMbi 1Jesv4TFrWrcLP4HrOBHScYUJbPbPbci4IVoFCCsFJHG7ois/UjBPNLJhz5VpaNHjIBJ CI3VCtGr4/SdPR0ZHUpZ8jY/sXhwrEj0KbhGa1DHhVd4pAEo/KxtD4xOXtxjGpQZtJMI gMWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UR9Ehi6u; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp6si8809006ejc.532.2021.02.27.02.28.28; Sat, 27 Feb 2021 02:28:54 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UR9Ehi6u; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230008AbhB0KY0 (ORCPT + 99 others); Sat, 27 Feb 2021 05:24:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:34010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230124AbhB0KYV (ORCPT ); Sat, 27 Feb 2021 05:24:21 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id ABDAB60C40; Sat, 27 Feb 2021 10:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614421420; bh=d35awyMx+zvfndcIRzL/TRwPxUZq9gKbGdfr7GTZCcI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UR9Ehi6uCdnsbVwfGY6AvK1tRzMZUbnFR6YdunRnYqMFRww+JbomdWimjdWY++PWf u/+MTU5FY9pAvep1gm+5TeF5Dl6R3VI0UFzp8/wPtk4GitAbMFhWvTTsVbKdxFJuGO KOJs3dEsO51CSEsVUqv8OcU3HiP31ObqZCfutzQEvuMnTLP4wxHNPi/gjbFK3WgUtw mM+hiD53nebk1dhl822kYAGUgoOesFFRVrJeHVQvF7Jr7283iZ3HgZ+cwC8cFxLeC1 eAxraAjVJuxAT/1JhcA5xX/JFfA2myAplSd8x88/xPZQCnZ6o9v3J3+iAJMKxAtGEz tDUcIRi5i2OeQ== Date: Sat, 27 Feb 2021 11:23:35 +0100 From: Lorenzo Bianconi To: Ryder Lee Cc: Felix Fietkau , Lorenzo Bianconi , Shayne Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 2/5] mt76: mt7615: stop ext_phy queue when mac reset happens Message-ID: References: <3794a3ffadc4a08548a1223e6955671977e78e49.1614411256.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="z3bhdhiqw4YTHhg7" Content-Disposition: inline In-Reply-To: <3794a3ffadc4a08548a1223e6955671977e78e49.1614411256.git.ryder.lee@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --z3bhdhiqw4YTHhg7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Stop Tx burst for ext_phy after mac reset. >=20 > Signed-off-by: Ryder Lee > --- > drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c b/drivers/ne= t/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); Hi Ryder, since we run mt76_txq_schedule_all then and mt76_worker_disable few lines b= elow, what is the point of setting the state to RESET? Regards, Lorenzo > 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) > =20 > clear_bit(MT76_MCU_RESET, &dev->mphy.state); > clear_bit(MT76_RESET, &dev->mphy.state); > + if (phy2) > + clear_bit(MT76_RESET, &phy2->mt76->state); > =20 > mt76_worker_enable(&dev->mt76.tx_worker); > napi_enable(&dev->mt76.tx_napi); > --=20 > 2.18.0 >=20 --z3bhdhiqw4YTHhg7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYDodpQAKCRA6cBh0uS2t rAo6AP9KKosBajGY7uX6nsVb1rdvB8jy/jMYre+3BCnjSVydvAD8CNYS+0rQnZll 0oVEPkDnr0WIeOzN2rSdUrrqI1WZdQY= =nEED -----END PGP SIGNATURE----- --z3bhdhiqw4YTHhg7--