wifi: mt76: mt7921e: add pci .shutdown() support
authorLeon Yen <Leon.Yen@mediatek.com>
Thu, 1 Dec 2022 10:38:42 +0000 (18:38 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 1 Dec 2022 16:29:15 +0000 (17:29 +0100)
commitf23a0cea8bd62f4a348974340bd9e753dc9b2941
tree21c4df3a0fa0a9ec89d98f8fff21b3f3145b86de
parent6a70a90dc1a74aa85598184f5a4c2f14316422b1
wifi: mt76: mt7921e: add pci .shutdown() support

Some combinations of hosts cannnot detect mt7921e 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.

Suggested-by: angelogioacchino.delregno@collabora.com
Co-developed-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Leon Yen <Leon.Yen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c