modem-manager: Fix the report that failed to get device after update

Module may not have been re-probed and exposed in MM when the FW version was successfully obtained, which leads to the report that failed to get device after update. In fact, FW has been uodated successfully, it needs to add 150s to wait for the module to be re-probed and exposed in MM.

Signed-off-by: Jarvis Jiang <jarvis.w.jiang@gmail.com>
This commit is contained in:
Jarvis-Jiang-G 2021-08-09 17:04:51 +08:00 committed by Mario Limonciello
parent 09770c60f0
commit cc388dba5a

View File

@ -1109,6 +1109,8 @@ fu_mm_device_write_firmware_mbim_qdu (FuDevice *device, GBytes *fw, GError **err
return FALSE;
fu_device_set_status (device, FWUPD_STATUS_DEVICE_READ);
fu_device_set_remove_delay(device, MAX_WAIT_TIME_SECS * 1000);
fu_device_add_flag(device, FWUPD_DEVICE_FLAG_WAIT_FOR_REPLUG);
version = fu_mm_device_get_firmware_version_mbim (device, error);
if (version == NULL)
return FALSE;