trivial: dell-dock: Set EC version to daemon before EC reset

If the process fails (or was skipped due to 'skip-restart') this will
prevent the daemon from trying again until the dock has been power
cycled.
This commit is contained in:
Mario Limonciello 2018-11-26 14:07:50 -06:00 committed by Richard Hughes
parent 1210332e05
commit 817a15a1bf

View File

@ -688,6 +688,9 @@ fu_dell_dock_ec_write_fw (FuDevice *device, GBytes *blob_fw,
if (!fu_dell_dock_hid_raise_mcu_clock (self->symbiote, FALSE, error))
return FALSE;
/* dock will reboot to re-read; this is to appease the daemon */
fu_device_set_version (device, dynamic_version);
if (fu_device_has_custom_flag (device, "skip-restart")) {
g_debug ("Skipping EC reset per quirk request");
return TRUE;
@ -733,9 +736,6 @@ fu_dell_dock_ec_write_fw (FuDevice *device, GBytes *blob_fw,
}
}
/* dock will reboot to re-read; this is to appease the daemon */
fu_device_set_version (device, dynamic_version);
return TRUE;
}