git: 729934499378 - stable/15 - mt76: mt7925: prevent PM from scheduling another delayed work on detach
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jun 2026 06:34:34 UTC
The branch stable/15 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=729934499378cac231c0cfec66b16945ec577e59
commit 729934499378cac231c0cfec66b16945ec577e59
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-06-21 20:05:04 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-06-29 03:54:10 +0000
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
(cherry picked from commit 482fda9814937691557ebadd0930535ff3d301b0)
---
sys/contrib/dev/mediatek/mt76/mt7925/pci.c | 5 +++++
1 file changed, 5 insertions(+)
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)