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

Deren Wu (武德仁) Deren.Wu at mediatek.com
Tue Nov 29 23:34:56 PST 2022


Hi Angelo,

On Tue, 2022-11-29 at 16:00 +0100, AngeloGioacchino Del Regno wrote:
> 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
> 

This patch works fine with pci .shutdown(). Thanks for your comments :)

I will drop this series and post a new version.


Regards,
Deren


> > ---
> >   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