Skip to content
Commit ced050ae authored by Chuanhong Guo's avatar Chuanhong Guo Committed by Felix Fietkau
Browse files

mt76: mt7615: retry if mt7615_mcu_init returns -EAGAIN



mt7615_load_patch in mt7615/mcu.c sometimes fails with:
mt7622-wmac 18000000.wmac: Failed to get patch semaphore
and returns -EAGAIN. But this error is returned all the way up to
mt7615_init_work with no actual retrial performed, leaving a
broken wireless phy.
Wait a bit and retry for up to 10 times before giving up.

Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 77d157f2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment