The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=482fda9814937691557ebadd0930535ff3d301b0
commit 482fda9814937691557ebadd0930535ff3d301b0 Author: Bjoern A. Zeeb <[email protected]> AuthorDate: 2026-06-21 20:05:04 +0000 Commit: Bjoern A. Zeeb <[email protected]> CommitDate: 2026-06-22 01:21:38 +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 MFC after: 3 days --- 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)
