mt76: mt7921: continue to probe driver when fw already downloaded
authorAaron Ma <aaron.ma@canonical.com>
Thu, 8 Jul 2021 13:17:10 +0000 (21:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jul 2021 20:33:13 +0000 (13:33 -0700)
commitc34269041185dad1bab7a34f42ef9fab967a1684
treec7460a31b7252a7ef13230ac537be907ae1c9a36
parentb9d233ea21f192702f8bbf3f5f640e2dde308b25
mt76: mt7921: continue to probe driver when fw already downloaded

When reboot system, no power cycles, firmware is already downloaded,
return -EIO will break driver as error:
mt7921e: probe of 0000:03:00.0 failed with error -5

Skip firmware download and continue to probe.

Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Fixes: 1c099ab44727c ("mt76: mt7921: add MCU support")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c