mt76: mt7921: robustify hardware initialization flow
authorSean Wang <sean.wang@mediatek.com>
Tue, 14 Sep 2021 15:50:21 +0000 (23:50 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:43 +0000 (10:36 +0200)
commit3a0098768761d335222a7f437870fd23287819f7
tree9f22041f6c95b65462b87277f9e5c625e90715d9
parente500c9470e26be66eb2bc6de773ae9091149118a
mt76: mt7921: robustify hardware initialization flow

Robustify hardware initialization in the current driver probing flow
to get rid of the device is possibly lost after the machine boot due
to possible firmware abnormal state by trying to recover the failure
with more chances.

Tested-by: Leon Yen <Leon.Yen@mediatek.com>
Tested-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/init.c
drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h