Attention is currently required from: Edward O'Callaghan, Angel Pons, Anastasia Klimchuk. Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/52597 )
Change subject: mec1308.c: Separate shutdown from failed init cleanup ......................................................................
Patch Set 1:
(1 comment)
File mec1308.c:
https://review.coreboot.org/c/flashrom/+/52597/comment/47d1a0d9_e6c025c8 PS1, Line 520: /* Exit passthru mode before performing commands which do not affect : the SPI ROM */ : mec1308_exit_passthru_mode(ctx_data); : : /* Re-enable SMI and ACPI. : FIXME: is there an ordering dependency? */ : if (mbx_write(ctx_data, MEC1308_MBX_CMD, MEC1308_CMD_SMI_ENABLE)) : msg_pdbg("%s: unable to re-enable SMI\n", __func__); : if (mbx_write(ctx_data, MEC1308_MBX_CMD, MEC1308_CMD_ACPI_ENABLE)) : msg_pdbg("%s: unable to re-enable ACPI\n", __func__); Could we just call mec1308_shutdown() here? Would have to skip the free() below, though:
failed_init_cleanup: mec1308_shutdown(ctx_data); return 1;
mec1308_init_exit: ...