linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mt76: fix crash on tearing down ext phy
@ 2021-01-19 16:49 Felix Fietkau
  2021-01-19 16:49 ` [PATCH 2/3] mt76: mt7915: fix vif sta index for DBDC Felix Fietkau
  2021-01-19 16:49 ` [PATCH 3/3] mt76: mt7915: add support for using a secondary PCIe link for gen1 Felix Fietkau
  0 siblings, 2 replies; 5+ messages in thread
From: Felix Fietkau @ 2021-01-19 16:49 UTC (permalink / raw)
  To: linux-wireless

Only clear dev->phy2 after the phy is gone, the driver may still need to access
it until shutdown is complete

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/net/wireless/mediatek/mt76/mac80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c
index f2714436883b..696d00d1976c 100644
--- a/drivers/net/wireless/mediatek/mt76/mac80211.c
+++ b/drivers/net/wireless/mediatek/mt76/mac80211.c
@@ -387,9 +387,9 @@ void mt76_unregister_phy(struct mt76_phy *phy)
 {
 	struct mt76_dev *dev = phy->dev;
 
-	dev->phy2 = NULL;
 	mt76_tx_status_check(dev, NULL, true);
 	ieee80211_unregister_hw(phy->hw);
+	dev->phy2 = NULL;
 }
 EXPORT_SYMBOL_GPL(mt76_unregister_phy);
 
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-27 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 16:49 [PATCH 1/3] mt76: fix crash on tearing down ext phy Felix Fietkau
2021-01-19 16:49 ` [PATCH 2/3] mt76: mt7915: fix vif sta index for DBDC Felix Fietkau
2021-01-21 15:33   ` Felix Fietkau
2021-01-19 16:49 ` [PATCH 3/3] mt76: mt7915: add support for using a secondary PCIe link for gen1 Felix Fietkau
2021-01-27 16:36   ` [PATCH v2 " Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).