Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1858575pxb; Sat, 27 Feb 2021 02:29:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJy39SuTBTb8zoI2ro+6hbyMy5rdc2jbH1CJmQlS02JuScKhHA63iTR1s7taJIRZFer66gef X-Received: by 2002:aa7:d7da:: with SMTP id e26mr909783eds.269.1614421761147; Sat, 27 Feb 2021 02:29:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614421761; cv=none; d=google.com; s=arc-20160816; b=evfYzNL7VZ8hXFW1afD5qa3Z5rmioizQu0ToJDkGwWyQ6LGeen8qd2Bk0zoIPCPNap riVjOj6yc+3o8Me+4IZA+345Sjv6FP/j2LSdLIGiLzulWOzXj+9kksZNOe1+biZFvf/t /+NgfZ0f3gBcwMUq5bPnHBPnEYipL7zdXsNkj8nY5VWkB4qZ+Wfoj1DzZiV4Ao7LGjrq NHeF9NLyGzoldN96tiAk7Tv7Zk5HOp/li5NbMRDfYyNeg9PH6Rci8s7+sd8AU4kWGuOF hETtX9IGvKDHvCVK4JOZsbEvFhtQ6GTJqEPn2gloPaFDam9jA2Qj2H44Q2EosyI42mph 8YNg== 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=wOSYp5uqKPABMUgFD7uzGveTBuzge40QTzFaDwqkDNg=; b=M6QrTwPZw0AJLzdLgI8i9QRn21fGdvUg8bQH7mZxczl3Ku84PE0eRPQmyVh1AYDRK4 dNYdr3+n1pby2QX4sDAFpmayiQkYVkgPBb8idzy0+4uMnbJ4L7mK3O0BKg09h4lnBhaC hdYOKuKwoUv8Kcw88EX+yoKgVSw/ctf/Q4CVznBBlonSiYBtF/RtOqygjIjuDUvCqi3F sX0Pf7L21/5lJoC92ZtSnsH6bNGyNY62GrShLCfo3xKNUUNr6Sv00AfVN+Iy6RruA5sj XdyUr8jab4LghQD2iHAdAqPbus2g+gvp0juP6raQQdZirikzEe0XEP/y0efE1hPUwYml nw2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HckBmWJp; 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 z19si4541692ejl.54.2021.02.27.02.28.58; Sat, 27 Feb 2021 02:29:21 -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=HckBmWJp; 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 S230032AbhB0K1H (ORCPT + 99 others); Sat, 27 Feb 2021 05:27:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:34694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbhB0K1D (ORCPT ); Sat, 27 Feb 2021 05:27:03 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 175AE64ED5; Sat, 27 Feb 2021 10:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614421582; bh=XO6UU8J6psHkJ5PcrSAcSy2M7xNonSzXvs10KkOZ7ns=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HckBmWJprwk1f0/ZkIO2GRWAKm7KTneLAYQbgZhKopclXa25iJOV7dLOfhdpEkDge uRkXio1EWLYc+2msoVUwXoPORpaYaR0p5YppdxlKkxgQDSAjsrn4PIGtkYyGkgAtDQ fIT1288ksmDRQDmu06spbURI80+xqJLnnCMGqy+R3GEaKah7c8+7RC6g431iKkaCH2 vgwSDIfaA1dbf2F7iXdsBd6/y8ixzlhzNizE9AC97ahiluHVW8YuwPupEb8ak9EAk0 hYK296YY89ESPAAZFaDBJSiBfuOt48nclDsQarHC6m2pbUVMsOXrOiabwKA7XkNOUi 5+/3h6bos+FUQ== Date: Sat, 27 Feb 2021 11:26:18 +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 4/5] mt76: mt7915: stop ext_phy queue when mac reset happens Message-ID: References: <20a4b03ba4a347a76df67291680704dfdb7da5d6.1614411256.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iNypzeBZfhswFpZY" Content-Disposition: inline In-Reply-To: <20a4b03ba4a347a76df67291680704dfdb7da5d6.1614411256.git.ryder.lee@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --iNypzeBZfhswFpZY 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/mt7915/mac.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/ne= t/wireless/mediatek/mt76/mt7915/mac.c > index 6b6ea33bd320..c653cd01b8d8 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c > @@ -1607,9 +1607,10 @@ void mt7915_mac_reset_work(struct work_struct *wor= k) > set_bit(MT76_MCU_RESET, &dev->mphy.state); > wake_up(&dev->mt76.mcu.wait); > cancel_delayed_work_sync(&dev->mphy.mac_work); > - if (phy2) > + if (phy2) { > + set_bit(MT76_RESET, &phy2->mt76->state); > cancel_delayed_work_sync(&phy2->mt76->mac_work); same question here as mt7615, do we really need this? Regards, Lorenzo > - > + } > /* lock/unlock all queues to ensure that no tx is pending */ > mt76_txq_schedule_all(&dev->mphy); > if (ext_phy) > @@ -1637,6 +1638,8 @@ void mt7915_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 --iNypzeBZfhswFpZY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYDoeRwAKCRA6cBh0uS2t rMCfAP4vuBHRkZxjZU6lLdA3uMeNdc8eXWNBP2F84H+Sd5r6LAD+ONh7K0Xda4S1 67JHWJitN17qOBdYkYzkeiUGZpC8Iww= =9yZY -----END PGP SIGNATURE----- --iNypzeBZfhswFpZY--