aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-06-21 20:05:04 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-06-22 01:21:38 +0000
commit482fda9814937691557ebadd0930535ff3d301b0 (patch)
tree5b6dc42615f2a482e73ab2cc8d9fdb4692aedea6
parentf4cd99131c70e8be2a793d939b644e20bbbd3374 (diff)
mt76: mt7925: prevent PM from scheduling another delayed work on detach
This duplicates 009d92b25f7c from mt7921 which has the full description. Sponsored by: The FreeBSD Foundation MFC after: 3 days
-rw-r--r--sys/contrib/dev/mediatek/mt76/mt7925/pci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/contrib/dev/mediatek/mt76/mt7925/pci.c b/sys/contrib/dev/mediatek/mt76/mt7925/pci.c
index d57e1aacf112..5831892dd1d4 100644
--- a/sys/contrib/dev/mediatek/mt76/mt7925/pci.c
+++ b/sys/contrib/dev/mediatek/mt76/mt7925/pci.c
@@ -41,6 +41,11 @@ static void mt7925e_unregister_device(struct mt792x_dev *dev)
if (dev->phy.chip_cap & MT792x_CHIP_CAP_WF_RF_PIN_CTRL_EVT_EN)
wiphy_rfkill_stop_polling(hw->wiphy);
+#if defined(__FreeBSD__)
+ /* See comment in mt7921. */
+ pm->enable = false;
+#endif
+
cancel_work_sync(&dev->init_work);
mt76_unregister_device(&dev->mt76);
mt76_for_each_q_rx(&dev->mt76, i)