Il 29/11/22 10:16, Deren Wu ha scritto:
Some combinations of hosts cannnot detect wifi chip after reboot. The interoperability issue is caused by the status mismatch between host and chip fw. In such cases, the driver should stop chip activities and reset chip to default state before reboot. This is a preliminary patch to add mt7921e reboot notifier support. Reviewed-by: Shayne Chen <shayne.chen@xxxxxxxxxxxx> Signed-off-by: Deren Wu <deren.wu@xxxxxxxxxxxx>
If you want to perform shutdown actions when rebooting the machine, this means that you want to perform actions when shutting down the kernel.... ...so, have you tried to perform such actions in the .shutdown() callback of your struct pci_driver? :-) Regards, Angelo
--- drivers/net/wireless/mediatek/mt76/mac80211.c | 21 +++++++++++++++++++ drivers/net/wireless/mediatek/mt76/mt76.h | 2 ++ 2 files changed, 23 insertions(+)