Merge tag 'efi-2022-01-rc4-4' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-01-rc4-4 UEFI: * allow for more than 16 KiB UEFI variable size when using StMM Others: * make watchdog sysreset compatible with separate poweroff driver * avoid OpenSSL deprecation warnings
This commit is contained in:
@@ -20,9 +20,16 @@ static int wdt_reboot_request(struct udevice *dev, enum sysreset_t type)
|
||||
struct wdt_reboot_plat *plat = dev_get_plat(dev);
|
||||
int ret;
|
||||
|
||||
ret = wdt_expire_now(plat->wdt, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
switch (type) {
|
||||
case SYSRESET_COLD:
|
||||
case SYSRESET_WARM:
|
||||
ret = wdt_expire_now(plat->wdt, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
break;
|
||||
default:
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
return -EINPROGRESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user