[PATCH v2 1/2] wifi: mt76: introduce reboot notifier support

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Tue Nov 29 07:00:57 PST 2022


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 at mediatek.com>
> Signed-off-by: Deren Wu <deren.wu at mediatek.com>

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(+)
> 




More information about the Linux-mediatek mailing list