Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2445441pxu; Mon, 7 Dec 2020 06:53:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7azEvuzGhuPrzbX0koCmVoHPjoL0QAn9SixdKvuX8RxBL1iifuVPlgjupKbfpEKTYA/1Y X-Received: by 2002:a05:6402:171a:: with SMTP id y26mr1742673edu.371.1607352830939; Mon, 07 Dec 2020 06:53:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607352830; cv=none; d=google.com; s=arc-20160816; b=q5S6mF3gueB/toVtv40ym/4C20yRsP8TnlAlnY/pV5X1gZ5EdoXAWsYxjtn8ZFsjSE FUqaeNWtw5tSMcwKitJpCF9JRviHVNDg99YFQLPG9fat+izc9POuf2CwVbQrB/M/oOMI 0yseJ1zJRvOrtRHKtdX4fvHhUx/CE/EFDIm4xbc3GYuhn/vkfzY1K4+9DOpft7NwP6RB igX9oAqMpmUbwFfIc1weddhLDITuktUz8pOs1R7O09IYjJl08TogazDY+M5ojXlBe62Z HI724OBQlJ4E9vhyAlZL749dfzUh0QYw2jJoYQT63QXETgXgGnFeEav9VCVMFB8VI+Q9 IOFg== 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:dkim-signature:date; bh=RkRT2jiFRNTL8iz8x+g+DSzQJC5aDHWCBRJOIi3KW9M=; b=0F3OYuRHjZeEHMVcxK1Al/fG98O8FXs6Cnqo1clHiacYZ6nyfm7mO9ECHo3XTlYD7A QX0wzGzb/lBna6bsfzmLAky/BKbQO6m2SAm3y7w/633kpLSo2IkoeTyI4Bl6oODbAupB h4sEWSPDm0VyJ2WnVtQj4/Iv+u7R2gP7DI9WFQAbSbuRQKXAE3KPE2FXZBDDaCb7S5eu ntfZcrhfY1zeqCJyn3DpIPkEIuttjU6vL1kmP8N0Hi+Hz7sFCdp/SXVLj/VyF9q++iZ5 PMRy/e7CJytTMpdYCmph+0mVP5PR3LJHzkIoyezzL/Hiw1jdoIiqYJSwlgEeuSdT+9OD g4/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b/TmSZgI"; 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 u5si8361342edi.314.2020.12.07.06.53.17; Mon, 07 Dec 2020 06:53:50 -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="b/TmSZgI"; 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 S1726788AbgLGOtw (ORCPT + 99 others); Mon, 7 Dec 2020 09:49:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:49362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbgLGOtv (ORCPT ); Mon, 7 Dec 2020 09:49:51 -0500 Date: Mon, 7 Dec 2020 15:49:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607352550; bh=asaQYHSFTdvDGtme2G+Ksw/0ZSJz4zjlN1KU5uUFWMM=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=b/TmSZgIA7r3YXrRBEcS9q1J/qsOtOjWi8l9tH+HktZKCydCdwQsTsQTdTyoJ8Hts +GS5hHNqmLCS8GSg4IbtTtltH5/4ovvJIkeqVa83ZB7rEuI1Z2/ops77omiq0Ytcgj +q5l+Q5fanoOczWRtdsCpiNLZb0GbgV1TnGJdEjPQPj2l6tez+wyEbfdGr2r4vvOpg c8Z7IB7rY+gkCByHwt9vq2864ybsWgCBv3lDJ0PK1s1F/vK3rC2uy1Uf7LCdMurQdq AfPRpc5BHTNWw840VmK8fzyJMJNbwRTqYo0YVK9m+vR/mkzGCA+5g03A6Hy5dTCXIz ZykXoOjUlIlaw== From: Lorenzo Bianconi To: Kalle Valo Cc: Felix Fietkau , linux-wireless Subject: Re: pull request: mt76 2020-12-04 v2 Message-ID: <20201207144905.GA292338@lore-desk> References: <20201207102432.AD525C433C6@smtp.codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <20201207102432.AD525C433C6@smtp.codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Felix Fietkau wrote: >=20 > > Hi Kalle, > >=20 > > sorry about the last one. Here's the updated PR with the missing=20 > > S-o-b fixed. > >=20 > > - Felix > >=20 > > The following changes since commit 9eb597c74483ad5c230a884449069adfb682= 85ea: > >=20 > > Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kva= lo/ath.git (2020-12-02 21:46:55 +0200) > >=20 > > are available in the Git repository at: > >=20 > > https://github.com/nbd168/wireless tags/mt76-for-kvalo-2020-12-04 > >=20 > > for you to fetch changes up to f12758f6f929dbcd37abdb1d91d245539eca48f8: > >=20 > > mt76: mt7615: Fix fall-through warnings for Clang (2020-12-04 22:24:5= 4 +0100) > >=20 > > ---------------------------------------------------------------- > > mt76 patches for 5.11 > >=20 > > * mt7915 fixes > > * mt7615 fixes > > * support for more sta interfaces on mt7615/mt7915 > > * mt7915 encap offload > > * performance improvements > > * channel noise report on mt7915 > > * usb/sdio support improvements > > * mt7915 testmode support > > * mt7915 DBDC support > > * warning fixes > >=20 > > ---------------------------------------------------------------- >=20 > This conflicted with commit 807982017730 ("mt76: usb: fix crash on device > removal") from wireless-drivers. I fixed with a diff below and pushed it = to the > pending branch: >=20 > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-ne= xt.git/commit/?h=3Dpending&id=3Df4a243bfdb0d9afc850d35755dc0bae0b980b4ac >=20 > Please double check my resolution. Also I wonder should the usb.status_wo= rker > have a similar fix as tx_worker had? If yes, someone please send a follow= up > patch for that. Hi Kalle, the patch seems fine to me, probably we can move mt76_worker_{disable,enable}(&dev->usb.status_worker) inside the if (!ret) block as originally done by Stanislaw. Something like: diff --git a/drivers/net/wireless/mediatek/mt76/usb.c b/drivers/net/wireles= s/mediatek/mt76/usb.c index dc850109de22..18444f26103e 100644 --- a/drivers/net/wireless/mediatek/mt76/usb.c +++ b/drivers/net/wireless/mediatek/mt76/usb.c @@ -1039,8 +1039,6 @@ void mt76u_stop_tx(struct mt76_dev *dev) { int ret; =20 - mt76_worker_disable(&dev->usb.status_worker); - ret =3D wait_event_timeout(dev->tx_wait, !mt76_has_tx_pending(&dev->phy), HZ / 5); if (!ret) { @@ -1059,6 +1057,7 @@ void mt76u_stop_tx(struct mt76_dev *dev) usb_kill_urb(q->entry[j].urb); } =20 + mt76_worker_disable(&dev->usb.status_worker); mt76_worker_disable(&dev->tx_worker); =20 /* On device removal we maight queue skb's, but mt76u_tx_kick() @@ -1077,13 +1076,12 @@ void mt76u_stop_tx(struct mt76_dev *dev) } =20 mt76_worker_enable(&dev->tx_worker); + mt76_worker_enable(&dev->usb.status_worker); } =20 cancel_work_sync(&dev->usb.stat_work); clear_bit(MT76_READING_STATS, &dev->phy.state); =20 - mt76_worker_enable(&dev->usb.status_worker); - mt76_tx_status_check(dev, NULL, true); } EXPORT_SYMBOL_GPL(mt76u_stop_tx); Regards, Lorenzo >=20 > diff --cc drivers/net/wireless/mediatek/mt76/usb.c > index f1ae9ff835b2,81393788f98e..000000000000 > --- a/drivers/net/wireless/mediatek/mt76/usb.c > +++ b/drivers/net/wireless/mediatek/mt76/usb.c > @@@ -1020,6 -1039,9 +1039,8 @@@ void mt76u_stop_tx(struct mt76_dev *dev > { > int ret; > =20 > - mt76_worker_disable(&dev->tx_worker); > + mt76_worker_disable(&dev->usb.status_worker); > +=20 > ret =3D wait_event_timeout(dev->tx_wait, !mt76_has_tx_pending(&de= v->phy), > HZ / 5); > if (!ret) { > @@@ -1061,6 -1078,9 +1082,8 @@@ > cancel_work_sync(&dev->usb.stat_work); > clear_bit(MT76_READING_STATS, &dev->phy.state); > =20 > - mt76_worker_enable(&dev->tx_worker); > + mt76_worker_enable(&dev->usb.status_worker); > +=20 > mt76_tx_status_check(dev, NULL, true); > } > EXPORT_SYMBOL_GPL(mt76u_stop_tx); >=20 >=20 >=20 > --=20 > https://patchwork.kernel.org/project/linux-wireless/patch/f42bcdc1-2cd4-9= f44-2889-bbb9e10e038a@nbd.name/ >=20 > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches >=20 --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCX85A3wAKCRA6cBh0uS2t rBZWAP4i8puwUZ58HN86KO/JSyVf/Gy5QhNdW0ewyh0ul1y5oQEAr2N/CXhv7NGt 5xnSXonv5RyAFDKgI/cf0d7pB3hCyQs= =HnCm -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--