mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-11 19:51:29 +00:00
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:
parent
1210332e05
commit
817a15a1bf
@ -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))
|
if (!fu_dell_dock_hid_raise_mcu_clock (self->symbiote, FALSE, error))
|
||||||
return FALSE;
|
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")) {
|
if (fu_device_has_custom_flag (device, "skip-restart")) {
|
||||||
g_debug ("Skipping EC reset per quirk request");
|
g_debug ("Skipping EC reset per quirk request");
|
||||||
return TRUE;
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user