Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4936045yba; Mon, 13 May 2019 02:21:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxL2+e2RKw1/bgyOX9D/9/sWPIMZJ0xyEgwrwzI0z7QP3jwLPq/R+bMPnkesFDqNdcaJDSw X-Received: by 2002:a17:902:9a9:: with SMTP id 38mr29617118pln.10.1557739273721; Mon, 13 May 2019 02:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557739273; cv=none; d=google.com; s=arc-20160816; b=EmyOr5hB3UQ8t6kc/b/z4ST9lKEojzlx3CR+H8XPOI2lHbLqo3sAVh0tvOd39IXq3r W/d0emw3EzC/5hgaKWuxBmS+qs2CVHnb/qwVudZih9op0UeGvO1YluIxYVQcRKlXWxN+ D+glNwsrY0cFYMw7W41aXkcagpdN/YKXr7cgrhja1bY4vm1xEYLXzcedDEaD9D8ATtFH A/BJ9x6vwxmx7y1lye9RxJ0lS5Fi7UdrBVAuX4UotwPTWf410eIGXHylAzwVrlqN6gjE /uw9AM7o3B3dZQb7PhyraNi+effHxNbTgMTcrot37cg3dsW2CGMlXvtNFl5rM2Z/KjEm Mc7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iPUR/H5LBv/LmJhI7XODxE1iYiS4y0erH6UviCxhd44=; b=GXwhaWdYNGNt1//UW4rTxrofeHhRabLmkTTT4FObEje233Bz7bbqAz88JV6n4M6ZxZ PL1YdSdot/UL4keWXYarQTJDfqD0x6jG2/RBm5pOmmJcZyTdoWLnPwNb6IeYHlkePjKT OLPLo7ZWK49hS4sByDAOPmqsTD+DDQ16Zt1nc5dSc+oQbuIt5nN1EnPczWslHptgizwC ueF5wur5GjdkJ0/Q7/ut1V90EQ7czMt5gSN2ndoZEP5lMlAwszl2v8FbaDwOlKJaIloZ RwUOtWgA4RkEXjrSgspitCd2K9qx5iOMddIHQ1MA1kDbASzkREnvBXFB30FXQivNzmp7 +EKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L7Iy7S13; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id m19si4610276pgl.241.2019.05.13.02.20.57; Mon, 13 May 2019 02:21:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L7Iy7S13; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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 S1728259AbfEMJTM (ORCPT + 99 others); Mon, 13 May 2019 05:19:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:43746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727742AbfEMJTM (ORCPT ); Mon, 13 May 2019 05:19:12 -0400 Received: from localhost.localdomain (nat-pool-mxp-t.redhat.com [149.6.153.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E957620989; Mon, 13 May 2019 09:19:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557739151; bh=yH69p5I1L3kzUlgk9xT0EtkDTEYQEKvrCr1JjK1EkuI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L7Iy7S13QdGr2Y8MyLpvlB3V1226HH+H+r1bTnEnz1o7OXvnbYpfXl5BI7J2WDKoS 9EPrBkz43bj7pQM1OCt54EDcZnkLcDbpaMeJMUImYTLe6SjCJwXxYVjxLF+AYc70M7 SuNyxF5nYtBkzmpyztwdfHnbY2UFG004fSi2MQ7s= Date: Mon, 13 May 2019 11:19:06 +0200 From: Lorenzo Bianconi To: Stanislaw Gruszka Cc: nbd@nbd.name, lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org Subject: Re: [PATCH 3/4] mt76: mt76x2: move mutex_lock inside mt76x2_set_channel Message-ID: <20190513091905.GB3127@localhost.localdomain> References: <1527e88fc4a307aa218f515811f2f2c15786caec.1557567465.git.lorenzo@kernel.org> <20190513083755.GA13726@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1LKvkjL3sHcu1TtY" Content-Disposition: inline In-Reply-To: <20190513083755.GA13726@redhat.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --1LKvkjL3sHcu1TtY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Sat, May 11, 2019 at 12:17:53PM +0200, Lorenzo Bianconi wrote: > > This is a preliminary patch to run mt76x02_edcca_init atomically > >=20 > > Signed-off-by: Lorenzo Bianconi > > --- > > .../wireless/mediatek/mt76/mt76x2/pci_main.c | 16 ++++++++------ > > .../wireless/mediatek/mt76/mt76x2/usb_main.c | 22 ++++++++++--------- > > 2 files changed, 21 insertions(+), 17 deletions(-) > >=20 > > diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c b/dri= vers/net/wireless/mediatek/mt76/mt76x2/pci_main.c > > index e416eee6a306..3a1467326f4d 100644 > > --- a/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c > > +++ b/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c > > @@ -54,14 +54,14 @@ mt76x2_set_channel(struct mt76x02_dev *dev, struct = cfg80211_chan_def *chandef) > > int ret; > > =20 > > cancel_delayed_work_sync(&dev->cal_work); >=20 > Since now you use mutex in mt76x2_phy_calibrate() you can remove =20 > cancel_delayed_work_sync() and drop other changes from this patch > as releasing mutex just to acquire it in almost next step make > no sense. I agree with you, the only difference is in that way we will perform phy calibration even during scanning. If the there are no objections I will post a v3 removing cancel_delayed_work_sync and reworking patch 3/4 Regards, Lorenzo >=20 > Stanislaw --1LKvkjL3sHcu1TtY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCXNk2hgAKCRA6cBh0uS2t rD8kAQDx6KUtx9K08KPcxEk4sQWbAPN9EZFRouV8ehVuEz4OwAD+NlIOi6lJnGFO azYB+pG1j6fJlAG/kmqJVvIwO1bWiQQ= =enL+ -----END PGP SIGNATURE----- --1LKvkjL3sHcu1TtY--