]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7925: add pci restore for hibernate
authorJack Kao <jack.kao@mediatek.com>
Mon, 1 Sep 2025 07:32:00 +0000 (15:32 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 15 Sep 2025 07:47:39 +0000 (09:47 +0200)
commitd54424fbc53b4d6be00f90a8b529cd368f20d357
tree412a4d50499ec5873f7af8e7a2b12a62174e953f
parentfe5fffadc6c77c56f122cf1042dc830f59e904bf
wifi: mt76: mt7925: add pci restore for hibernate

Due to hibernation causing a power off and power on,
this modification adds mt7925_pci_restore callback function for kernel.
When hibernation resumes, it calls mt7925_pci_restore to reset the device,
allowing it to return to the state it was in before the power off.

Signed-off-by: Jack Kao <jack.kao@mediatek.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20250901073200.230033-1-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/pci.c