| 28 | } |
| 29 | |
| 30 | void vboot_save_data(struct vb2_context *ctx) |
| 31 | { |
| 32 | if (!verification_should_run() && !(ENV_RAMINIT && CONFIG(VBOOT_EARLY_EC_SYNC))) { |
| 33 | if (ctx->flags |
| 34 | & (VB2_CONTEXT_SECDATA_FIRMWARE_CHANGED |
| 35 | | VB2_CONTEXT_SECDATA_KERNEL_CHANGED)) |
| 36 | die("TPM writeback in " ENV_STRING "?"); |
| 37 | } else { |
| 38 | save_secdata(ctx); |
| 39 | } |
| 40 | |
| 41 | if (ctx->flags & VB2_CONTEXT_NVDATA_CHANGED) { |
| 42 | printk(BIOS_INFO, "Saving nvdata\n"); |
| 43 | save_vbnv(ctx->nvdata); |
| 44 | ctx->flags &= ~VB2_CONTEXT_NVDATA_CHANGED; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /* Check if it is okay to enable USB Device Controller (UDC). */ |
| 49 | int vboot_can_enable_udc(void) |
no test coverage detected